BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/trophy/leaderboard-podium

Leaderboard Podium

trophy/leaderboard-podium
FreeComponent

Top-three React leaderboard podium with crowns, avatars, and ranks for competitive gamification. Leaderboard UI component for highlights and recap screens. Built on shadcn/ui + Tailwind. Open source.

Live preview

live · rendered by the registry
Rendered by trophy on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://ui.trophy.so/r/leaderboard-podium.json

Source

registry/trophy/ui/leaderboard-podium.tsxui.trophy.so/r/leaderboard-podium.json · first 6 KB
1"use client"
2
3import * as React from "react"
4import { cva, type VariantProps } from "class-variance-authority"
5import { Crown } from "lucide-react"
6
7import { cn } from "@/lib/utils"
8
9// Types (inlined)
10interface LeaderboardRanking {
11 userId: string
12 userName: string | null
13 rank: number
14 value: number
15 avatarUrl?: string | null
16}
17
18// Variants
19const podiumVariants = cva("flex items-end justify-center gap-4", {
20 variants: {
21 size: {
22 sm: "gap-2",
23 default: "gap-4",
24 lg: "gap-6",
25 },
26 },
27 defaultVariants: {
28 size: "default",
29 },
30})
31
32// Podium styles for each position
33const PODIUM_CONFIG = {
34 1: {
35 icon: Crown,
36 color: "text-rank-1",
37 bg: "bg-rank-1/60",
38 ringColor: "ring-rank-1/50",
39 height: "h-32",
40 heightSm: "h-24",
41 heightLg: "h-40",
42 },
43 2: {
44 icon: Crown,
45 color: "text-rank-2",
46 bg: "bg-rank-2/30",
47 ringColor: "ring-rank-2/50",
48 height: "h-24",
49 heightSm: "h-20",
50 heightLg: "h-32",
51 },
52 3: {
53 icon: Crown,
54 color: "text-rank-3",
55 bg: "bg-rank-3/50",
56 ringColor: "ring-rank-3/50",
57 height: "h-20",
58 heightSm: "h-16",
59 heightLg: "h-28",
60 },
61} as const
62
63// Props
64interface LeaderboardPodiumProps
65 extends
66 React.HTMLAttributes<HTMLDivElement>,
67 VariantProps<typeof podiumVariants> {
68 /** Top 3 rankings (expects at least 1, ideally 3) */
69 rankings: LeaderboardRanking[]
70 /** Show value below name */
71 showValue?: boolean
72 /** Show avatar */
73 showAvatar?: boolean
74 /** Crown badge style variant */
75 medalStyle?: "classic" | "modern" | "minimal"
76}
77
78const LeaderboardPodium = React.forwardRef<
79 HTMLDivElement,
80 LeaderboardPodiumProps
81>(
82 (
83 {
84 className,
85 size,
86 rankings,
87 showValue = true,
88 showAvatar = true,
89 medalStyle = "classic",
90 ...props
91 },
92 ref
93 ) => {
94 // Get top 3, reorder for podium display: 2nd, 1st, 3rd
95 const top3 = rankings.slice(0, 3)
96 const podiumOrder = [
97 top3.find((r) => r.rank === 2),
98 top3.find((r) => r.rank === 1),
99 top3.find((r) => r.rank === 3),
100 ].filter(Boolean) as LeaderboardRanking[]
101
102 if (podiumOrder.length === 0) {
103 return null
104 }
105
106 const avatarSize = {
107 sm: "h-10 w-10 text-sm",
108 default: "h-14 w-14 text-lg",
109 lg: "h-20 w-20 text-2xl",
110 }[size ?? "default"]
111
112 const iconSize = {
113 sm: "h-4 w-4",
114 default: "h-5 w-5",
115 lg: "h-6 w-6",
116 }[size ?? "default"]
117
118 const textSize = {
119 sm: "text-xs",
120// … truncated

What it pulls in

npm packages

  • class-variance-authority
  • lucide-react

Files it writes

  • registry/trophy/ui/leaderboard-podium.tsx

Facts

Registry
trophy
Type
registry:ui
Access
Free
Files written
1
Licence
the repository states none
In the index
at or before 2026-08-13
Last confirmed
today

Go to the source

Docs on trophy ui.trophy.so trophyso/ui on GitHub Raw registry item This item as JSON

More from trophy

All 18 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Achievement Badgeachievement-badgetrophyComponentsFree1 dep
Achievement Cardachievement-cardtrophyComponentsFreeno deps
Achievement Gridachievement-gridtrophyComponentsFree2 deps
Achievement Listachievement-listtrophyComponentsFree2 deps
Achievement Unlockedachievement-unlockedtrophyComponentsFree1 dep
Leaderboard Cardleaderboard-cardtrophyComponentsFreeno deps
Leaderboard Rankingsleaderboard-rankingstrophyComponentsFree2 deps
Points Awardspoints-awardstrophyComponentsFree2 deps

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex