Interactive Bar Ranking
Ranked rows can change metric and order while each item keeps its spatial identity and value — reordering is a layout animation, not a redraw.
Live example
Try the interaction before reading the recipe.
real component · keyboard-safe
- 0184%Research12 notes
- 0276%Release15 notes
- 0368%Prototype9 notes
Change the metric or sort order. Rows keep their identity while the ranking changes.
Purpose
Ranked rows can change metric and order while each item keeps its spatial identity and value — reordering is a layout animation, not a redraw.
Good for
- Small ranked sets where sorting is part of the reading task
Avoid for
- Large tables that need pagination, filtering or virtualization
Usage
tsx
<InteractiveBarRanking items={items} metrics={metrics} label="Campaign ranking" />Accessibility
- Metric and sort controls are semantic buttons; each ranked row exposes rank, label and value.
- Bars are paired with numbers and order, so colour is not the only signal.
Performance
- Layout motion is limited to discrete reorder events; reduced motion switches directly to the new order.
Related: comparison-bars, selection-tray.
Source: packages/skills/data/interactive-bar-ranking.md