Charts
BarList
Horizontal ranked bars with labels and values โ ideal for top-N breakdowns.
Quick Preview
/dashboard12,430
/components/ui9,810
/docs/getting-started7,240
/components/animations5,890
/blog4,120
/pricing3,650
Installation
# No extra dependencies
// Copy component fromsrc/components/charts/BarList.tsx
Usage
import BarList from '@/components/charts/BarList'<BarListdata={[{ name: 'Item A', value: 100 },{ name: 'Item B', value: 75 },{ name: 'Item C', value: 50 },]}valueFormatter={(v) => v.toLocaleString()}color="#F45A5A"/>
Examples
Framework Popularity โ Custom Colors
React68%
Vue41%
Angular29%
Svelte21%
Solid12%
Values Hidden (Visual Only)
/dashboard
/components/ui
/docs/getting-started
/components/animations
Prompt Preview
Copy a prompt that recreates this UI
Paste this into your AI coding assistant to generate code that closely matches the reference, including color, size, shape, typography, spacing, and polish.
Copy-ready AI prompt
Starts from the current visual reference and project constraints.
Tweak only product-specific copy or data after the first generation pass.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
data* | BarListItem[] | - | Array of {name, value, color?} |
valueFormatter | (v: number) => string | - | Format displayed value |
showValues | boolean | true | Show value next to bar |
color | string | '#F45A5A' | Default bar colour |