Revenue, 30 days
+12.4%
482,600,000
Toman
vs the 30 days before
The dashboard KPI with a number that rolls up from zero, a trend delta, a sparkline and prefix/suffix.
The component as it is used in a product — not a specimen grid.
Each number counts itself up when it scrolls in, the sparkline draws its path, and the caption answers “compared to what?”.
vs the 30 days before
137 opened, 86 closed
down is the good news
6 minutes down, all planned
Same component, honest trend: support wait time climbing after the launch week.
two agents on vacation
Drop trend and delta — the counting number alone still earns its seat in a table header or footer.
right now
| Prop | Type | Default | What it does |
|---|---|---|---|
| value / decimals | number | 0 / 0 | The main figure and its decimals; digits localize to Persian. |
| delta / invertDelta | number|bool | null / false | Percent change; invert what counts as good for metrics like churn. |
| prefix / suffix / caption | string | null | Currency unit, suffix and the comparison caption. |
| trend | array | null | The sparkline series inside the card. |
<x-nx::stat-card label="درآمد ماه" :value="482600000" suffix=" تومان"
:delta="12.4" :trend="[12, 18, 14, 22, 19, 26]" caption="نسبت به ماه گذشته" />