<ui-container>
Centred, width-constrained page container.
Layout · stable · since 2.0.0 · extends _UIElement
Examples
Narrow content
<ui-container size="sm"><p>Narrow content</p></ui-container>
Wide content
<ui-container size="xl"><p>Wide content</p></ui-container>
Playground
Generated HTML
Event log
API
Attributes and properties
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
disabled | disabled | boolean | false | |
busy | data-ui-busy | boolean | false | |
size | size | string | "md" | Max width: sm, md, lg, xl or full. |
Methods
None.
Events
None.
Slots
(default)— Page content.
CSS classes
- Base class:
ui-container size→ui-container--{}