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

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