Extruded bars with a lit front, shaded side and bright top. They grow from the floor when scrolled into view. Hover or tap a bar for its value.
Install it the shadcn way: copy the source file into your project. It uses CSS 3D, Tailwind CSS v4 and Framer Motion, no WebGL.
| Prop | Type | Default | Description |
|---|---|---|---|
| data | BarDatum[] | Bars to draw, each with a label and a number. | |
| height | number | 240 | Plot height in px. |
| depth | number | 22 | Bar depth (the extrusion) in px. |
| format | (v: number) => string | (v) => v.toLocaleString() | Format the value label. |
| className | string | Extra classes added to the outer element. |