10
35.5
45
9.5
- Idle
- Queue
- Processing
- Error
Show code
import { SegmentedBar } from '@six-vallees/ui-react';
export default function SegmentedBarDemo() {
const mix = [
{ label: 'Idle', value: 10 },
{ label: 'Queue', value: 35.5 },
{ label: 'Processing', value: 45, active: true },
{ label: 'Error', value: 9.5 },
];
return (
<div className="w-full max-w-[520px] text-on-surface">
<SegmentedBar data={mix} scale="categorical" />
</div>
);
}Installation
npx shadcn@latest add https://cairn.sixvallees.com/r/segmented-bar.json