Lollipop Bars
Horizontal pill bars whose ends rise on a dotted stem to a dot and the value, with a legend naming each row.
Interactive preview · desktop · dark
Installation
Installation is available on the Startup and Business plans. Your personal install command appears here once you have access.
Usage
Import it, pass your props, and make it part of your product.
example.tsx
import { Headset } from 'lucide-react';import { LollipopBarsChart } from '@/components/component-kit/items/chart-lollipop-bars';
export function Example() { return ( <LollipopBarsChart icon={Headset} title="Tickets by channel" items={[ { id: 'email', label: 'Email', value: 1420 }, { id: 'chat', label: 'Chat', value: 980 }, { id: 'phone', label: 'Phone', value: 1660 }, ]} /> );}Props
| Prop | Type | Default | Description |
|---|---|---|---|
items | LollipopItem[] | — | Rows with id, label, value and optional color. |
rowHeight | number | 64 | Vertical space per row in pixels. |