displaytexulinot agent-emittableapp
Stat
stat
A single metric with optional delta, trend and sparkline slot.
Live examples
Revenue up
Revenue up
Loading demo…
Props
| Name | Kind | Required | Default | Description |
|---|---|---|---|---|
label | string | yes | — | — |
value | unknown | yes | — | string or number |
delta | unknown | no | — | string or number change |
trend | enum (up, down, neutral) | no | — | — |
positive | enum (up, down) | no | "up" | Which direction is good |
hint | string | no | — | — |
icon | slot | no | — | — |
sparkline | slot | no | — | — |
variant | enum (elevated, flat) | no | "elevated" | — |
class | string | no | — | — |
Keyboard
| Key | Action |
|---|---|
a | Label and value are text; trend has a spoken word, not color alone. |
Accessibility
- Label and value are text; trend has a spoken word, not color alone.
Evidence for stat
Latest committed gates for stat (as of 2026-10-23). Static snapshot — not live CI.
Behavior
n/ano behavior scenario
No dedicated behavior scenario for this catalog id (a styled or display surface, covered by its unit and axe tests).
Size (gzip)
texuli/stat · budget 12.0 KiB
Budget from texuli.budgets.json; re-measure with `pnpm size --filter <entry>`.
Axe
documented
tests/e2e/site-component-pages.spec.tsdocs/quality (a11y-*)
Site component pages axe gate; package-level a11y docs under docs/quality when present.
Browsers
chromiumwebkitmobile
Playwright projects: Desktop Chrome, Desktop Safari, Pixel 7. Firefox is a known gap on this host.
When to use
Use when
- Show one KPI with a human-formatted value
Don’t use when
Prefer another component
- A currency/percent KPI with previous period math (use kpi)