Stat

The KPI / metric tile a dashboard opens with — a labelled number with an optional sentiment-aware delta, an icon, a description, and a chart-agnostic trend slot. Terse one-liner or full slot composition; Stat.Group lays a responsive row of tiles.

Stablev0.3.0@garn/ui/stat

Default

The terse one-liner — label, compact value, percent delta.

Total revenue1.2Mup 12.5%

Carded

Composed onto Card with an icon, currency value, and description.

Total revenue$1,240,000up 12.5%
vs. previous 30 days

Delta Sentiment

Same numbers, different meaning — sentiment="inverse" colours an up-is-bad metric red.

New signups842up 8.4%
Churn rate3.2%up 1.1%
Open tickets17no change 0%
No change

Delta Appearance

text (inline coloured arrow) vs soft (a tinted lozenge).

Active users48.2Kup 6.2%
Active users48.2Kup 6.2%
Error rate1.4%down 0.4%

Formats

currency · compact · percent · suffix unit · a raw node value.

Revenue$1,240,000
MRR$84.2K
Conversion23.4%
Avg. response128ms
Status
No data yet

Sizes

sm · md · lg.

Sessions12.4Kup 4%
Sessions12.4Kup 4%
Sessions12.4Kup 4%

Trend

A token-styled sparkline dropped into the chart-agnostic Trend slot.

Requests / min30.2Kup 21%

Loading

The loading preset holds the footprint with Skeleton blocks.

Group

Stat.Group — a four-column responsive row of KPIs.

Key metrics
Revenue$1.2Mup 12.5%
Active users48.2Kup 6.2%
Requests / min30.2Kup 21%
Avg. latency128msdown 8%

Group Divided

Stat.Group with seam separators inside a Card.

Key metrics
Revenue$1.2Mup 12.5%
Active users48.2Kup 6.2%
Requests / min30.2Kup 21%
Avg. latency128msdown 8%

Group Cards

A row of individually carded tiles (auto-fit by minTileWidth).

Key metrics
Revenue$1.2Mup 12.5%
Active users48.2Kup 6.2%
Requests / min30.2Kup 21%

Composed

Full control via slots — Stat.Icon / .Label / .Value / .Delta / .Description.

Annual recurring revenue$1,010,400.0up 18.2%
Up from $855K last year