Metrics replay
Rewind a whole dashboard with one scrubber. Every tile rolls to the value at that moment, lines draw solid up to the playhead and dashed after it, and what happened (a deploy, an alert, a rollback) lists as the playhead passes it.
State
When to use
- Incident reviews and weekly metrics walkthroughs.
- Showing a team what happened across several measures at once.
When not to use
- A single chart with one story; use the line replay.
- Live monitoring; use the metrics dashboard.
Installation
terminal
pnpm dlx shadcn@latest add @caliper/metrics-replay
Adds its 15 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
MetricsReplay
8 props
PropTypeDefaultDescription
titlestring"Replay"
descriptionstring—
steps *readonly string[]—Labels for each moment, e.g. hours of the day.
metrics *readonly ReplayMetric[]—
eventsreadonly ReplayEvent[][]
secondsnumber12Seconds for a full pass at 1×.
autoPlaybooleanfalse
classNamestring—
Keyboard
- →
- Moves to the next item or value.
- ←
- Moves to the previous item or value.
- Space
- Activates the focused control.
Accessibility
It is built on native elements and keeps aria-label, aria-hidden and aria-valuetext in step with state.
Motion
- State changes animate with the library's shared durations and curves, so its timing matches every other part.
- Under reduced motion each change lands on its end state without movement; nothing is hidden or skipped.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/metrics-replay.mdThe index of every part is at /llms.txt.
More in Metrics
Metrics dashboardA connected strip of KPIs; choose one to see the period against the one before and its target.Line replayA line chart that draws itself over time.Incident roomThe room an incident is run in: severity, status and the clock in view, responders paged from a roster, one timeline for notes and public updates, and a postmortem written from it.