Back to blocks
BlockData & TablesFree

Leaderboard Block React component

A leaderboard with a medal podium for the top three, a ranked list with progress bars and up or down arrows against the previous period, period, metric and team switches that re-rank everyone with smooth motion, and your own row pinned at the bottom when you are further down.

About the Leaderboard Block component

Leaderboard Block ranks people by any score. The top three stand on a podium with gold, silver and bronze rings; everyone else follows in a list with a bar against the leader and an arrow showing how many places they moved since the previous period.

Switch the period, the metric or the team and everyone glides to their new place, including moving on and off the podium. The person looking at it is highlighted, and if they are further down than the visible rows their own position is pinned at the bottom so they always see where they stand.

When to use it

Use it for sales targets, community points, learning streaks, game scores or internal recognition.

Keep periods to two or three; more choices make the rank-change arrows harder to read.

Installation

Add the Leaderboard Block component to your project with the shadcn CLI. It lands in components/leaderboard.tsx as plain React + Tailwind CSS source you own and can edit.

Install
Copied!
npx shadcn@latest add @reactframe/leaderboard

Or copy the source by hand and install its dependencies:

Install
Copied!
npm install motion clsx tailwind-merge

Related components

Invoice List Block
Free
Transactions Table Block
Free
File Manager Block
Free
Audit Log Table Block
Free
Open Roles Board Section
Free
Waitlist Form Block
Free