Components/Container

Container

Centered max-width page wrapper with responsive horizontal padding.

Installation

Examples

Max-width variants

sm through 2xl constrains the content width.

sm640px
md768px
lg1024px
xl1280px

API Reference

PropTypeDefaultDescription
maxWidth'sm'|'md'|'lg'|'xl'|'2xl'|'full''xl'Constrains the container width.
centeredbooleantrueCenters with auto margins.
paddingbooleantrueAdds responsive horizontal padding.