Bar Chart
FREEColourful bars that grow in, with a tooltip on hover.
React 19Tailwind 4motionadded 2026-12-05
live preview · bar chartCoffees this week (sample)
MonTueWedThuFriSat
Installation
Into your bowl in one line.
The CLI drops the source straight into your project. You own every line; there’s no package to update.
- 01
Add it with the CLI
$ npx bowls@latest add bar-chart - 02
Or go manual: install the one dependency
npm i motion - 03
Serve it
Paste the source into
components/bowls/bar-chart.tsxand import it — the Code tab’s demo.tsx shows a full example.
Props
| PROP | TYPE | DEFAULT | WHAT IT DOES |
|---|---|---|---|
| data | { label; value; color }[] | — | One entry per bar. |
| title | string | — | Caption, also read to screen readers. |
| height | number | 150 | Chart height, in px. |
| format | (value: number) => string | — | Tooltip text. |