Race bars
ProRanked bars that reorder as values change over time.
pnpm dlx shadcn@latest add @caliper/race-bars- react-kit92,000
- chart-core41,000
- form-lab38,000
- motion-kit22,000
- icon-set60,000
- tokens30,000
- data-table18,000
Q1 2024: react-kit, icon-set, chart-core lead
| Time | react-kit | chart-core | form-lab | motion-kit | icon-set | tokens | data-table |
|---|---|---|---|---|---|---|---|
| Q1 2024 | 92000 | 41000 | 38000 | 22000 | 60000 | 30000 | 18000 |
| Q2 2024 | 98000 | 52000 | 44000 | 31000 | 63000 | 36000 | 27000 |
| Q3 2024 | 101000 | 66000 | 47000 | 45000 | 64000 | 44000 | 39000 |
| Q4 2024 | 104000 | 81000 | 52000 | 58000 | 66000 | 49000 | 55000 |
| Q1 2025 | 107000 | 99000 | 57000 | 74000 | 67000 | 58000 | 72000 |
| Q2 2025 | 109000 | 118000 | 61000 | 92000 | 68000 | 66000 | 91000 |
| Q3 2025 | 111000 | 140000 | 66000 | 109000 | 69000 | 71000 | 118000 |
| Q4 2025 | 113000 | 166000 | 70000 | 131000 | 70000 | 79000 | 149000 |
When to use #
Use it for
- Telling a story about rank changes across periods.
- Playing back a leaderboard.
Skip it when
- Readers need to inspect one moment closely.
- The ranking rarely changes.
Installation #
pnpm dlx shadcn@latest add @caliper/race-bars
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.
Usage #
Import it from your copy of the source. The example behind the preview comes with the source.
import { RaceBars } from "@/components/ui/race-bars"
The worked example comes with Pro
The 35-line example behind the preview opens here with a Pro or Team licence.
API reference #
RaceBars
component
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.
No custom key handling; Tab and the native activation keys do the work.
Motion #
It declares no animation in its component source. Any transition comes from its stylesheet, which uses the duration tokens that collapse to instant under prefers-reduced-motion.