shadcn.io is not affiliated with official shadcn/ui
Leaderboard Podium Features Block for React
A leaderboard: a podium of the top three at different heights in foreground tones, set on the rule of a ranked table of eight with trend arrows, and a segmented control that ranks by adoption or by speed.
Installation
Overview
A leaderboard feature section for React with Base UI, shown for Benchmarq, a benchmark service that ranks eight made-up HTTP servers on one machine. In the header a segmented control chooses what to rank by, adoption or speed. Under it, a podium shows the top three at three heights, the first in the middle, drawn in your theme's foreground tones with large numerals: no gold, silver or bronze, so it reads the same in any preset. The podium stands on the rule of the table band, which lists all eight with their rank, name, both measures and a trend arrow. Choosing the other measure re-ranks the podium and the table, and the column you ranked by turns bolder. On a phone the podium is lower and the table drops its trend column. It's built from Segment Group, Table and Guides, with CSS transitions for the entrance and your theme's tokens for every colour. For benchmark and comparison pages, rankings and scoreboards.
FAQ
How do I change the entries?
Edit SERVERS at the top of the file: each entry has a name, adoption (installs a week, in thousands), speed (thousands of requests a second) and a trend (up, steady or down). Ranks come from sorting on the chosen measure, never from typed numbers, so adding a measure means adding a field and an entry in METRICS. The podium always shows the first three.
How does the ranking control work?
The two choices are a Segment Group, so one is always selected: arrow keys move between them and the order changes as you choose. A polite status line says who is now first, for screen readers, and the podium and the table list the same ranking.
How is the podium marked up?
It's an ordered list named "Top three by adoption" (or speed), in rank order, so a screen reader hears the winner first even though the first place is drawn in the middle. The big numerals are decoration, because the list already announces its position. The full standings are a real table with column headers and a name for the table.
How is the trend shown without colour?
Each row has an arrow (up, down) or a dash, in the text colour, and a screen reader hears the word: Rising, Falling or Steady. Nothing depends on a green or a red, so it reads in any theme.
Related
- Pro
Invoice Line Item Features
Documents and objectsAn invoice drawn as a framed sheet: a header with terms, a table of six line items where the seat count is a live number input, and a subtotal, tax and total that recompute as it changes.
- Pro
Lab Report Specimen Cards Features
Documents and objectsFour specimen cards in a two by two of framed cells: each with a mono code, a verdict badge, a small drawing plate of its measurements and a data list of three readings.
- Pro
Achievement Trophy Wall Features
Metrics and chartsA wall of eight milestone badges for a language-learning app: unlocked ones solid, locked ones muted with a lock and a progress bar, a header count, and a tooltip with each unlock rule.
- Pro
Vs Competitor Comparison Table Features
Proof and comparisonsAn eight-row comparison of a project suite with an unnamed typical tool, with real values, a monochrome check or dash, a count of where it leads and a Switch that shows only the rows that differ.
- AABAABPro
Scorecard Letter Grade Grid Features
Metrics and chartsA site-audit report card: six areas in a hairline grid, each with a display letter grade, a sentence and five proficiency dots, and a foot band with the overall grade counted from the scores.
- Pro
Analytics Widget Dashboard Features
Metrics and chartsA job-queue dashboard drawn as a window in a hairline frame: a range control in its title bar re-draws the throughput line and re-reads the uptime and outcome figures, beside a seven-bar week.