Skip to content
caliper ui pro docs

Race bars

Ranked bars that reorder as values change over time.

Pro
Weekly downloadsQ4 2024
  1. react-kit92,000
  2. chart-core41,000
  3. form-lab38,000
  4. motion-kit22,000
  5. icon-set60,000
  6. tokens30,000
  7. data-table18,000

Q4 2024: react-kit, icon-set, chart-core lead

Weekly downloads
Timereact-kitchart-coreform-labmotion-kiticon-settokensdata-table
Q4 202492000410003800022000600003000018000
Q1 202598000520004400031000630003600027000
Q2 2025101000660004700045000640004400039000
Q3 2025104000810005200058000660004900055000
Q4 2025107000990005700074000670005800072000
Q1 20261090001180006100092000680006600091000
Q2 2026111000140000660001090006900071000118000
Q3 2026113000166000700001310007000079000149000

When to use

  • Telling a story about rank changes across periods.
  • Playing back a leaderboard.

When not to use

  • Readers need to inspect one moment closely.
  • The ranking rarely changes.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/race-bars

Adds its 6 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

RaceBars

10 props
PropTypeDefaultDescription
label *string—
items *readonly RaceItem[]—
frames *readonly RaceFrame[]—
topnumber8How many places to show.
intervalnumber900Milliseconds per frame while playing.
unitstring""
formatValue((value: number) => string)numberText
loadingboolean—
errorstring—
classNamestring—

Keyboard

  • No custom key handling; Tab and the native activation keys do the work.

Accessibility

It exposes status semantics, with aria-label, aria-busy, aria-hidden and aria-valuetext kept in step with state. Changes that matter are announced through a live region.

Notes for AI

Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.

/docs/components/race-bars.md

The index of every part is at /llms.txt.

More in Advanced charts