Card
Linked or static summary cards, alone or in a grid.
Use Card and CardGroup for scannable links or feature summaries.
Basic usage#
Card group#
Horizontal card#
Image card#
Link card#
Typed cards#
Typed cards use the matching callout theme and default icon. Set icon to
override the default.
Cards with href render as links; without it they are static containers.
External href values open in a new tab. For mixed content side by side, use
Columns.
Properties#
Card#
| Name | Type | Description |
|---|---|---|
| title | ReactNode | Card heading. |
| href | string | Optional link destination. When set, the card is interactive. |
| icon | ReactNode | string | Lucide icon name, image URL or path, or rendered element. |
| color | string | CSS color applied to the icon. |
| img | string | Image shown above the body. |
| cta | string | Trailing action label. |
| horizontal | boolean | Lay out icon, title, and body in a row. Default: false |
| arrow | boolean | Show or hide the trailing arrow. External links show it by default. |
| type | 'note' | 'info' | 'warning' | 'tip' | 'check' | 'danger' | Apply the matching callout background, border, text color, and default icon. |
| children | ReactNode | Body content. |
CardGroup#
| Name | Type | Description |
|---|---|---|
| cols | 1 | 2 | 3 | 4 | Number of columns in the grid. Default: 2 |
| children | ReactNode | One or more |
