<ui-card>
Surface container with optional header, body and footer.
Display · stable · since 2.0.0 · extends _UIElement
Examples
<ui-card><ui-card-header>Title</ui-card-header><ui-card-body>Body</ui-card-body></ui-card>
<ui-card dashed size="lg"><ui-card-body>Dashed</ui-card-body></ui-card>
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" | sm, md or lg. |
flat | flat | boolean | false | Remove shadow. |
ghost | ghost | boolean | false | Transparent surface. |
primary | primary | boolean | false | Primary accent. |
dashed | dashed | boolean | false | Dashed border. |
Methods
None.
Events
None.
Slots
(default)— ui-card-header, ui-card-body, ui-card-footer.
CSS classes
- Base class:
ui-card size→ui-card--{}flat→ui-card--flatghost→ui-card--ghostprimary→ui-card--primarydashed→ui-card--dashed