Two rings, groups inside and their children outside, with a ticked ruler and no ring labels; hovering widens a group and dims the rest, clicking zooms it to the whole ring.
pnpm dlx shadcn@latest add @beautiful-ui-pro/sunburstNeeds your registry key. Your components.json style picks the Base UI or Radix build: radix-*, new-york and default get Radix, base-* gets Base UI.
The CLI adds the styles to the CSS file named in components.json (tailwind.css). Check that it points at your global stylesheet, that the project uses Tailwind CSS v4, and that the file is imported in your root layout. Installed by hand: paste styles.css into that file.
Import it and pass your content. The props that matter most are listed next.
import { Sunburst, type SunburstGroup } from "@/components/ui/notchset/sunburst";
const spend: SunburstGroup[] = [
{ label: "Planner", children: [{ label: "search_docs", value: 3.4 }, { label: "run_sql", value: 2.6 }, { label: "other", value: 0.7 }] },
{ label: "Triage", children: [{ label: "classify", value: 2.2 }, { label: "other", value: 0.8 }] },
{ label: "Verifier", children: [{ label: "cite_check", value: 1.2 }, { label: "other", value: 0.6 }] },
];
export function SpendBreakdown() {
return <Sunburst data={spend} prefix="$" suffix="K" rootLabel="ALL AGENTS" title="SPEND BY AGENT AND TOOL" />;
}data–
{ label, children: { label, value }[] }[]Up to five groups.
prefix / suffix–
stringAround the centre value ($ … K).
rootLabel / groupNoun / childNoun–
stringCentre and breadcrumb words.
components/ui/notchset/sunburst.tsx
This component is included with Pro.
Try the live preview above. Get Pro to install the source.