Skip to content
caliper ui pro docs

Rank list

A leaderboard that re-ranks as values change: rows travel to their new place, values count to their new figure, and a mark says how many places each row moved.

Pro
  1. Rank 1: Amara O.EMEA– no change$182,400
  2. Rank 2: Tomás F.NA West– no change$176,900
  3. Rank 3: Ines C.EMEA– no change$151,200
  4. Rank 4: Aiko T.APAC– no change$149,800
  5. Rank 5: Dev P.NA East– no change$132,050

When to use

  • Top accounts, sales leaderboards, fastest-growing pages.
  • Rankings that refresh while the page is open.

When not to use

  • Sortable tables people re-order themselves; use the sortable table.
  • Rankings that refresh many times a second.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/rank-list

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

rankItems

0 props

No props of its own; it accepts the native props of its root element.

RankList

6 props
PropTypeDefaultDescription
items *readonly RankItem[]—
label *string—
formatNumberFormatOptions—
unitstring""
limitnumber—Show only the top n.
classNamestring—

Keyboard

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

Accessibility

It is built on native elements and keeps aria-label and aria-hidden in step with state.

Notes for AI

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

/docs/components/rank-list.md

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

More in Changing values