Metric ticker
A strip of live KPIs: each value counts to its new figure, the change is marked in its direction, and a small trace keeps the latest readings. Scrolls sideways on phones.
- Sign-ups today1,284Steady
- MRR$482,300Steady
- p95 latency212 msSteady
- Error rate0.42%Steady
- Users online3,912Steady
When to use
- The top of an operations or launch dashboard.
- Four to eight numbers people glance at.
When not to use
- Static monthly numbers; use stat cards.
- Values that change many times a second.
Installation
terminal
pnpm dlx shadcn@latest add @caliper/metric-ticker
Adds its 4 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
API reference
MetricTicker
4 props
PropTypeDefault
metrics *readonly TickerMetric[]—
historynumber24
label *string—
classNamestring—
Keyboard
- No custom key handling; Tab and the native activation keys do the work.
Accessibility
It is built on native elements and keeps aria-label and aria-hidden in step with state.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/metric-ticker.mdThe index of every part is at /llms.txt.
More in Metrics
Stat cardA bordered figure with a label, description and change.Live tableValues that update in place. A changed cell flashes once in the direction it moved and keeps a small arrow; rows never reorder. Pause freezes the view and counts waiting updates.SparklineA tiny trend line with no axes, for use inside text and tables.