Leaderboard

Loading...

Installation

Install the component via the CLI in one command.

npx shadcn@latest add @intentui/leaderboard

Manual installation

Use this approach if you prefer to install and wire up the component yourself instead of using the CLI.

npm install react-aria-components tailwind-merge

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

The Leaderboard component displays ranked items.

PropTypeDefault
classNamestring-

LeaderboardAction

The LeaderboardAction component places actions in the leaderboard header.

PropTypeDefault
classNamestring-

LeaderboardContent

The LeaderboardContent component contains leaderboard rows.

PropTypeDefault
classNamestring-

LeaderboardEnd

The LeaderboardEnd component renders trailing content for a leaderboard row.

PropTypeDefault
classNamestring-

LeaderboardHeader

The LeaderboardHeader component groups the leaderboard title and actions.

PropTypeDefault
classNamestring-

LeaderboardItem

The LeaderboardItem component represents one ranked leaderboard row.

PropTypeDefault
classNamestring-
onAction() => void-

LeaderboardStart

The LeaderboardStart component renders leading content for a leaderboard row.

PropTypeDefault
classNamestring-

LeaderboardTitle

The LeaderboardTitle component renders the leaderboard heading.

PropTypeDefault
classNamestring-

See the React Aria for the full API reference.