Card
Default single border, or the double-border KPI style.
Installation
Usage
Examples
Single border
The default card with a single border.
Double border
The KPI style with a double-border frame.
API reference
Card
| Prop | Type | Default |
|---|---|---|
variantDefault is a single border. Border wraps content in a second inner frame. | "default" | "border" | "default" |
sizeDensity. sm tightens gaps and padding across header, content and footer. | "default" | "sm" | "default" |
childrenCard parts or free-form content. Border variant accepts anything. | ReactNode | - |
classNameAdditional classes merged with the variant styles. | string | - |
CardHeader
| Prop | Type | Default |
|---|---|---|
classNameAdditional classes. Pairs with CardTitle and CardDescription, plus optional CardAction. | string | - |
CardTitle
| Prop | Type | Default |
|---|---|---|
classNameAdditional classes merged with the title styles. | string | - |
CardDescription
| Prop | Type | Default |
|---|---|---|
classNameAdditional classes merged with the muted description styles. | string | - |
CardAction
| Prop | Type | Default |
|---|---|---|
classNameSlot in the header corner, e.g. for a button. Header switches to two columns when present. | string | - |
CardContent
| Prop | Type | Default |
|---|---|---|
classNameAdditional classes merged with the content padding. | string | - |