Container
Centered, padded column. maxWidth takes a Tailwind class.
Content stays centered and never wider than max-w-sm.
Props
maxWidthstringDefault:'max-w-5xl'Tailwind max-width class.
classNamestringDefault:''Extra classes for the root element.
asElementTypeDefault:'div'Element or component to render.
childrenReactNodeContent.
...restAny other props are passed to the underlying element.
| Prop | Type | Default | Description |
|---|---|---|---|
maxWidth | string | 'max-w-5xl' | Tailwind max-width class. |
className | string | '' | Extra classes for the root element. |
as | ElementType | 'div' | Element or component to render. |
children | ReactNode | – | Content. |
...rest | – | Any other props are passed to the underlying element. |