Shelf is open source and in early preview
Shelf

For AI agents: the documentation index is at /llms.txt, and any docs page is available as Markdown by appending .md to its URL.

Bar Chart

A bar chart for comparing values across categories, grouped, stacked, or horizontal.

When to use

Use when
Comparing values across categories, grouped, stacked, or horizontal.
Avoid when
There are many categories with long names on a narrow screen, or parts of a whole; use a horizontal bar or Pie Chart.

Installation

The source lands in src/components/ui/chart-bar.tsx, along with any Shelf items it builds on, and .shelf/lock.json records what was installed. It's yours to edit.

Usage

Built on

Packages
recharts
Shelf items
Chart
Figma
Optional native Figma library. See Designers.

Verified

Size
0.6 kB gzipped on its own, 85 kB with the Shelf items and packages it builds on. JS and CSS in a production build, without React.
Accessibility
Axe passes on 5 stories
Behavior
3 interaction tests in Storybook
React Doctor
React Doctor finds nothing