Layout
Container
Centered max-width wrapper that constrains content to readable line lengths and consistent page widths.
Preview
size="sm" — max-w-2xl
size="md" — max-w-4xl
size="lg" — max-w-6xl
size="xl" — max-w-7xl (default)
Props
| Prop | Type | Default | Description |
|---|---|---|---|
size | "sm" | "md" | "lg" | "xl" | "full" | "xl" | Max-width constraint of the container |
padded | boolean | true | Add default horizontal padding (px-4 sm:px-6 lg:px-8) |
className | string | — | Additional CSS classes |