Container
stableCenters content with responsive max-widths.
Basic usage
Container
Examples
Responsive sizes
Pick the max-width that matches the density of the page area.
size=sm
size=md
size=lg
Full-width sections
Use size="full" for app surfaces that should stretch edge to edge.
Full-width app section
Widths and gutters
maxWidth mirrors the MUI naming, while size remains the Structyl alias.
maxWidth=false disableGutters
Features
- Responsive horizontal padding.
- Preset max-width sizes.
Installation
bash
pnpm dlx structyl add containerAPI Reference
Container
Responsive centered page container.
| Prop | Type | Default |
|---|---|---|
| size | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'full'Structyl alias for maxWidth. | 'lg' |
| maxWidth | false | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'full'Maximum container width. Pass false for full width. | 'lg' |
| disableGutters | booleanRemove horizontal page padding. | false |
| fixed | booleanUse fixed breakpoint widths. | false |
| className | stringAdditional Tailwind classes merged with the component defaults. | — |