Zephora UI

Layout

Container

Horizontally centered max-width wrapper for page content with five width presets and optional inline padding.

Import

import { Container } from "@zephora/react";

Examples

Sizes

sm = 640px, md = 768px, lg = 1024px, xl = 1280px, full = no max width.

sm · 640px
md · 768px
lg · 1024px

Padded section

`padded` adds inline padding; `as` changes the rendered element.

Page content stays readable on wide screens.

API

Container props

PropTypeDefaultDescription
size"sm" | "md" | "lg" | "xl" | "full""lg"Max width: sm=640px, md=768px, lg=1024px, xl=1280px, full=none.
paddedbooleanfalseAdds inline (horizontal) padding.
askeyof JSX.IntrinsicElements"div"Root element tag.
unstyledbooleanfalseHeadless mode — skips Zephora styling.