Horizontal Bar Ranking
A production-scale, light + dark Horizontal Bar Ranking component. Copy-paste via the CLI; you own the code.
npx lerpa-cli add horizontal-bar-rankingLive preview available in the gallery.
Usage
import { HorizontalBarRanking } from "@lerpa/ui";
<HorizontalBarRanking />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| data | RankingItem[] | — | |
| title | string | — | |
| subtitle | string | — | |
| color | string | — | |
| unit | string | — |
Accessibility
- Keyboard accessible interactive elements.
- Respects prefers-reduced-motion where animated.
- Color is never the only signal.