Zephora UI

Layout

Grid

24-column flex grid. Row (aliased as Grid) hosts Col children with span, offset, gutters and responsive overrides per breakpoint.

Import

import { Row, Col, Grid } from "@zephora/react";

Examples

Spans

Each Row is 24 columns wide; Col spans slice it up.

24
12
12
8
8
8

Gutter and offset

`gutter` takes a number (horizontal px) or `[horizontal, vertical]`; `offset` skips columns.

6
6, offset 6
12
12

Responsive

sm/md/lg override span and offset from 640/768/1024px up. Resize the viewport to see the change.

A
B
C

API

Row / Grid props

PropTypeDefaultDescription
gutternumber | [number, number]0Space between columns in px — a number (horizontal) or [horizontal, vertical].
alignCSSProperties["alignItems"]align-items value.
justifyCSSProperties["justifyContent"]justify-content value.
wrapbooleantrueAllow columns to wrap.
unstyledbooleanfalseHeadless mode — skips Zephora styling.

Col props

PropTypeDefaultDescription
spannumberColumns to span out of 24. Omitted → flexible (fills remaining space).
offsetnumberColumns to skip before this one.
sm / md / lg{ span?: number; offset?: number }Overrides from the 640px / 768px / 1024px breakpoints up.
unstyledbooleanfalseHeadless mode — skips Zephora styling.