Black Friday · Save 40% on Intent UI Design licenses with code UI2026.· 4 days left

Leaderboard

Loading...

Installation

Add the component with the CLI.

npx shadcn@latest add @intentui/leaderboard

Manual installation

Install the dependencies, then copy the component source into your project.

npm install react-aria-components cn

Examples

Currency

Format values as monetary amounts.

Loading...

Percentage

Display values as percentages for progress tracking.

Loading...

With header

Add a header to provide context and structure.

Loading...

With icon

Include icons alongside entries for visual clarity.

Loading...

Controlled

Manage leaderboard data programmatically for dynamic updates.

Loading...

Component API

Leaderboard

Leaderboard extends the native <div> element.

classNamestring

LeaderboardAction

LeaderboardAction extends the native <div> element.

classNamestring

LeaderboardContent

LeaderboardContent extends the native <ul> element.

classNamestring

LeaderboardEnd

LeaderboardEnd extends the native <div> element.

classNamestring

LeaderboardHeader

LeaderboardHeader extends the native <div> element.

classNamestring

LeaderboardItem

LeaderboardItem extends the React Aria Components <ProgressBar> component.

classNamestring
onAction() => void

LeaderboardStart

LeaderboardStart extends the React Aria Components <Label> component.

classNamestring

LeaderboardTitle

LeaderboardTitle extends the native <div> element.

classNamestring

See the React Aria for the full API reference.

Design