Sunburst
A radial hierarchy where each ring is a level and each arc a share of its parent.
Choose a slice with parts to zoom in; the centre zooms back out.
| Path | Value |
|---|---|
| Cloud bill / Compute / Web servers | 18400 |
| Cloud bill / Compute / Workers | 9200 |
| Cloud bill / Compute / GPU jobs | 14100 |
| Cloud bill / Storage / Object storage | 7300 |
| Cloud bill / Storage / Databases / Primary | 6800 |
| Cloud bill / Storage / Databases / Replicas | 4100 |
| Cloud bill / Storage / Databases / Backups | 1900 |
| Cloud bill / Storage / Logs | 3200 |
| Cloud bill / Network / CDN | 5600 |
| Cloud bill / Network / Data transfer | 4400 |
| Cloud bill / Tooling / CI minutes | 2800 |
| Cloud bill / Tooling / Monitoring | 2100 |
When to use
- Showing how a total splits across two or three nested levels, such as region, product and plan.
- The part-to-whole story matters more than exact values.
When not to use
- There are more than three levels; a treemap reads more easily.
- Readers need to compare close values; use bars.
Installation
terminal
pnpm dlx shadcn@latest add @caliper/sunburst
Adds its 5 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
API reference
Sunburst
7 props
PropTypeDefault
label *string—
root *SunburstNode—
unitstring""
formatValue((value: number) => string)numberText
loadingboolean—
errorstring—
classNamestring—
Keyboard
- No custom key handling; Tab and the native activation keys do the work.
Accessibility
It exposes group and status semantics, with aria-label, aria-busy, aria-hidden and aria-current kept in step with state. Changes that matter are announced through a live region.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/sunburst.mdThe index of every part is at /llms.txt.