Race bars
Ranked bars that reorder as values change over time.
- react-kit92,000
- chart-core41,000
- form-lab38,000
- motion-kit22,000
- icon-set60,000
- tokens30,000
- data-table18,000
Q4 2024: react-kit, icon-set, chart-core lead
| Time | react-kit | chart-core | form-lab | motion-kit | icon-set | tokens | data-table |
|---|---|---|---|---|---|---|---|
| Q4 2024 | 92000 | 41000 | 38000 | 22000 | 60000 | 30000 | 18000 |
| Q1 2025 | 98000 | 52000 | 44000 | 31000 | 63000 | 36000 | 27000 |
| Q2 2025 | 101000 | 66000 | 47000 | 45000 | 64000 | 44000 | 39000 |
| Q3 2025 | 104000 | 81000 | 52000 | 58000 | 66000 | 49000 | 55000 |
| Q4 2025 | 107000 | 99000 | 57000 | 74000 | 67000 | 58000 | 72000 |
| Q1 2026 | 109000 | 118000 | 61000 | 92000 | 68000 | 66000 | 91000 |
| Q2 2026 | 111000 | 140000 | 66000 | 109000 | 69000 | 71000 | 118000 |
| Q3 2026 | 113000 | 166000 | 70000 | 131000 | 70000 | 79000 | 149000 |
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.mdThe index of every part is at /llms.txt.