Ticker
A compact metric display for dashboards and analytics. Shows a label, value, and optional delta change indicator with auto-derived intent coloring.
Basic Usage
Plain ticker
With Delta
The component auto-derives intent from the delta sign: positive = success (green), negative = danger (red), zero = neutral:
Ticker with delta
Absolute Delta Format
Show raw numbers instead of percentages:
Absolute delta format
Intent Override
Override the auto-derived color for metrics where "up" is bad:
Intent override — up is bad
Size Variants
All size variants
Footer Slot
Add context text below the value:
Ticker with footer
Dashboard Grid
Ticker dashboard row
Props
| Prop | Type | Default | Description |
|---|---|---|---|
label |
string |
null |
Metric label |
value |
string |
null |
Formatted value to display |
delta |
int|float |
null |
Change value |
delta-format |
string |
'percent' |
Delta format: percent or absolute |
intent |
string |
null |
Override auto-derived intent: success, danger, neutral |
size |
string |
'md' |
Size variant: sm, md, lg |
Slots
| Slot | Description |
|---|---|
footer |
Context text below the value |
Accessibility
<article>root witharia-labelledbylinking to the label- Delta carries
aria-labeldescribing direction and magnitude (e.g. "Change: up 12 percent") - Tabular-nums font variant for aligned digit columns
Keyboard Interaction
This component is purely presentational and does not respond to keyboard input.
Pitfalls
- Don't auto-refresh ticker rows on a sub-second interval. WCAG 2.2.2 — and screen readers announce every change as
aria-live="polite"updates fire.
Design Tokens
| Token | Used for |
|---|---|
--font-wk-sans |
Ticker font family |
--font-wk-body-weight / --font-wk-heading-weight |
Label / value font weight |
--text-wk-xs / --text-wk-sm / --text-wk-lg / --text-wk-xl |
Font size per size prop |
--color-wk-text |
Value text |
--color-wk-text-muted |
Label + footer text |
--color-wk-success-text |
Positive delta color |
--color-wk-danger-text |
Negative delta color |
Usage & Conventions
Prop conventions — this component uses one or more of the shared semantic prop names (
intent/variant/tone/surface). See Prop naming conventions for the canonical vocabulary, alias matrix, and decision tree.