Components ds-card
Card surface
Surface for grouping related content. A variant tints the outline and fill with a status color, and a ds-status in the header names the status with a word and a shape, so it never relies on color alone.
Live playground
This surface provides visual grouping, consistent padding, and optional variant accents.
Interactive props
Usage example
<ds-card variant="neutral">
<ds-status slot="header" variant="neutral">Info</ds-status>
<ds-card-header slot="header">
<span slot="title">Design System Card</span>
<span slot="subtitle">Surface Component</span>
</ds-card-header>
<p>This surface provides visual grouping, consistent padding, and optional variant accents.</p>
</ds-card>
Properties reference
| Property | Type | Default | Description |
|---|---|---|---|
| variant | 'neutral' | 'positive' | 'negative' | 'warning' | undefined | Tints the outline and fill with a status color. Name the status with a ds-status in the header slot. |
| interactive | boolean | false | Adds hover border transitions and press scaling. |