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.

Chart

The shared parts of every chart: frame, grid, axes, tooltip, and a legend that hides series.

When to use

Use when
Building any chart, or changing how every chart looks and reads.
Avoid when
You only need one chart type; start from that chart's page.

Installation

The source lands in src/components/ui/chart.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
@stylexjs/stylex, recharts
Shelf items
foundations, utils
Figma
Optional native Figma library. See Designers.

Verified

Size
4.3 kB gzipped on its own, 89 kB with the Shelf items and packages it builds on. JS and CSS in a production build, without React.
Rendering
Parent re-renders skip its consumers
React Doctor
React Doctor finds nothing