Components/Stat
Stat
KPI display for dashboards. Shows a label, value, and optional trend, icon, and description.
Revenue
$45k
8.1%
Customers
1,204
4.2%
Orders
384
2.3%
Installation
npx ajaxui add statWith icon and description
Monthly revenue
$12,450
3.2%
vs last month
Props
| Prop | Type | Default |
|---|---|---|
| label | string | โ |
| value | ReactNode | โ |
| trend | number | โ |
| trendLabel | string | โ |
| icon | ReactNode | โ |
| description | string | โ |