PRIMITIVES
Container
Centred max-width column with responsive horizontal padding. The default page wrapper for Damo UI documents.
Import
Basic usage
Page heading
Body content lives inside a centred max-width column.
Size variants
Six size steps mirror Tailwind's screen-* breakpoints, plus a full option for full-bleed sections.
Unpadded
Disable padding when the children already manage their own gutters or for full-bleed hero banners.
Props
Container props
| Prop | Type | Default | Description |
|---|---|---|---|
| size | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | 'full' | 'lg' | Maximum width breakpoint. full removes the max-width entirely (useful for full-bleed banners that still want centred padding). |
| padded | boolean | true | When true, applies responsive horizontal padding (px-4 md:px-6 lg:px-8). |
| className | string | — | Tailwind classes are merged on top of the defaults. |
Accessibility
- Layout primitive — renders as a plain
<div>. Forwardrole(e.g.role="main",role="region") andaria-labelwhen the container marks a semantic landmark. - No built-in interactive behaviour; all keyboard and focus management is the responsibility of the children.