Container
Centered content container with max-width
Constrained content
Container clamps content to a readable measure. Use it to wrap long-form text, articles, or any section that should stay narrow on wide viewports.
Accessibility
- This component does not add meaning by itself; ensure child content supplies the required headings, labels, and landmarks.
- Only add landmark or region semantics when the section has a unique, meaningful label.
Styled quick start
Copy this entrypoint first. It includes the imports required to get the component on screen.
Import options
Root package
ts
import { Container } from '@dryui/ui' Per-component subpath
ts
import { Container } from '@dryui/ui/container' API
Props, CSS variables, and the public data attributes you can target when styling.
| Prop | Type | Description | Default | Required | Bindable |
|---|---|---|---|---|---|
| size | smmdlgxlfull Preset container width, not an arbitrary CSS length. | Size preset affecting density, spacing, or typography. | 'lg' | — | — |
| padding | boolean | — | true | — | — |
| children | Snippet | Content rendered inside the component. | — | ✓ | — |