Stat Card
Displays key performance metrics, numeric values, trend indicators (+/-), icons, and contextual descriptions.
import
import { StatCard } from "@/components/ui/statCard/statCard";$
npx @bloomui-react/cli add statCardstatCard.tsx
Default
Standard KPI metric summary card.
Total Revenue
$124,500.00
+14.2%
Compared to $108,900.00 last month
Metrics Dashboard Grid
Multiple KPI cards arranged in a responsive grid layout.
grid: anygrid-cols-1: anysm: anygrid-cols-3: anygap-4: anychange: anytrend: anyup: anydown: anym: anys: anyneutral: any
Active Users
18,420
+8.4%
Bounce Rate
34.2%
-2.1%
Avg Session
4m 12s
0.0%
API Reference
Props — StatCard
Supported properties for StatCard.
| Prop | Type | Default | Description |
|---|---|---|---|
| title | ReactNode | — | Header title label of the metric card. |
| value | ReactNode | — | Primary numeric value or formatted string. |
| change | string | number | — | Percentage or value change badge label. |
| trend | 'up' | 'down' | 'neutral' | 'neutral' | Trend indicator color & arrow direction. |
| icon | ReactNode | — | Header icon graphic element. |