Components
- Accordion
- Alert
- Alert Dialog
- Aspect Ratio
- Autocomplete
- Avatar
- Badge
- Bar List
- Breadcrumb
- Button
- Button Group
- Calendar
- Card
- Carousel
- Checkbox
- Checkbox Group
- Circular Progress
- Collapsible
- Combobox
- Command
- Context Menu
- Currency Input
- Data Table
- Date Picker
- Dialog
- Drawer
- Dropdown Menu
- Empty
- Field
- Hover Card
- Input
- Input Group
- Input OTP
- Item
- Kbd
- Label
- Menubar
- Meter
- Multi Combobox
- Native Select
- Navigation Menu
- Number Field
- Pagination
- Phone Input
- Popover
- Progress
- Progress List
- Prompt
- Radio Group
- Resizable
- Scroll Area
- Select
- Separator
- Sheet
- Sidebar
- Skeleton
- Slider
- Sonner
- Spinner
- Stat
- Switch
- Table
- Tabs
- Textarea
- Toggle
- Toggle Group
- Tooltip
- Typography
Loading...
import { BarList } from "@/components/ui/bar-list";
const data = [
{ name: "Search", value: 72 },
{ name: "Email", value: 58 },
{ name: "Social", value: 33 },
{ name: "Referral", value: 19 },
];
export function BarListDemo() {
return (
<BarList
className="w-full max-w-md"
data={data}
valueFormatter={(value) => `${value}%`}
/>
);
}Installation
npx shadcn@latest add "https://ui.blode.co/r/styles/default/bar-list"
Usage
import { BarList } from "@/components/ui/bar-list";const data = [
{ name: "Search", value: 72 },
{ name: "Email", value: 58 },
{ name: "Social", value: 33 },
];
<BarList data={data} valueFormatter={(value) => `${value}%`} />;