Browse components

Container

Centered max-width wrapper with optional horizontal padding.

atoms

Live example

Default usage you can copy and adapt.

Container

Page-level width constraint

Centered max-width container

Props

The props you are most likely to need, with types and defaults.

Props / API
NameTypeRequiredDefaultDescription
as'div' | 'section' | 'main' | 'article'NodivRoot element
maxWidthstringNoxlsm | md | lg | xl | 2xl | full
paddedbooleanNotrueApply horizontal padding