Skip to Content

Container

A structural component that constrains content width and applies responsive margins to maintain layout consistency. 

Sizes

Use the container-{size} class to control the component size.

Size values can include:xssmmdlgxl.

For more information on all available sizing utilities, visit Tailwind 

Customizing

globals.css
:root { --ex-container-max-w-xs: var(--container-xs); --ex-container-max-w-sm: var(--container-sm); --ex-container-max-w-md: var(--container-md); --ex-container-max-w-lg: var(--container-lg); --ex-container-max-w-xl: var(--container-xl); }

API

ElementSelector
Container.ex-container
PropTypeDefault
asElementTypediv
asChildbooleanfalse
Last updated on