ID:WORK-005Status:pending
Build stat Rune
Priority:mediumComplexity:unknown
stat RuneKey metric display — a prominent number with label and optional trend indicator. Used for dashboards, KPI sections, and data highlights. Alias: metric. This is a core rune.
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
value | String | — | Yes | The metric value (e.g., "99.9%", "$4.2M") |
label | String | — | Yes | What the metric measures |
trend | String | — | No | Trend direction: up, down, flat |
change | String | — | No | Change amount (e.g., "+12%") |
icon | String | — | No | Icon name from theme icon registry |
Stat<div>value (span), label (span), trend, change (span), icondescription (p, if content provided)packages/runes/src/tags/stat.tspackages/runes/src/config.ts — mostly declarative (modifiers for trend, structure injection for value/label/change)packages/lumina/styles/runes/stat.csspackages/lumina/index.csspackages/runes/test/tags/stat.test.tsNone — fully declarative, no JS needed.