structyl

Container API

View component

The 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.

PropTypeDefault
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#boolean

Remove horizontal page padding.

false
fixed#boolean

Use fixed breakpoint widths.

false
className#string

Additional Tailwind classes merged with the component defaults.

Source code

If you didn't find what you need here, read the component implementation .

structyl — Accessible React Component Library