Container API
View componentThe full prop reference for the Container component. Centers content with responsive max-widths.
Import
tsx
import { Container } from '@structyl/styled';Props
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. | — |
Source code
If you didn't find what you need here, read the component implementation .