ComponentsStat

displaytexulinot agent-emittableapp

Stat

stat

A single metric with optional delta, trend and sparkline slot.

Live examples

Revenue up

Revenue up

Loading demo…

Props

Public props for Stat
NameKindRequiredDefaultDescription
labelstringyes——
valueunknownyes—string or number
deltaunknownno—string or number change
trendenum (up, down, neutral)no——
positiveenum (up, down)no"up"Which direction is good
hintstringno——
iconslotno——
sparklineslotno——
variantenum (elevated, flat)no"elevated"—
classstringno——

Keyboard

Keyboard behavior for Stat
KeyAction
aLabel 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.ts
  • docs/quality (a11y-*)

Site component pages axe gate; package-level a11y docs under docs/quality when present.

Browsers

  • chromium
  • webkit
  • mobile

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)