Appearance
StatCard
Compact statistic display with icon and color variants.
Props
StatCardProps
| Prop | Type | Default | Description |
|---|---|---|---|
title | string | Required | Stat label |
value | string | number | Required | Stat value |
icon | LucideIcon | - | Icon component |
variant | 'default' | 'success' | 'warning' | 'danger' | 'info' | 'default' | Color variant |
className | string | - | Container class |
Example
tsx
<StatCard
title="Total Users"
value="1,234"
icon={Users}
variant="success"
/>