Bar list

This component has been deprecated. We recommend using the Leaderboard component instead.

Loading...

Installation

Install the component via the CLI in one command.

npx shadcn@latest add @intentui/bar-list

Manual installation

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

npm install tailwind-merge

Examples

Controlled

Controlled bar lists allow you to manage the data and interactions dynamically, making it easier to update or change the displayed information based on user actions or other events.

Loading...

Component API

BarList extends the native <div> element.

classNamestring
dataBar<T>[]
Default: []
onValueChange(payload: Bar<T>) => void
sortOrder"ascending" | "descending" | "none"
Default: descending
valueFormatter(value: number) => string
Default: (value) => value.toString()
Design