Layers stacked around a centre line in ink fills and patterns, binned so ranges morph smoothly, labelled where they're thick, with hover that isolates a layer and milestones you add by clicking a day.
pnpm dlx shadcn@latest add @beautiful-ui-pro/streamgraphNeeds 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.
"use client";
import * as React from "react";
import { Streamgraph, type StreamMilestone } from "@/components/ui/notchset/streamgraph";
const DAY = 864e5;
const days = Array.from({ length: 90 }, (_, i) => new Date(Date.UTC(2026, 6, 1) + i * DAY));
const byTool = ["search_docs", "run_sql", "web_fetch"].map((label, k) => ({ label, values: days.map((_, i) => (3 - k) * 800 + 300 * Math.sin(i / (6 + k))) }));
export function ToolCalls() {
const [ms, setMs] = React.useState<StreamMilestone[]>([{ id: "mig", date: new Date(Date.UTC(2026, 7, 14)), label: "ATLAS 3 FLASH" }]);
return <Streamgraph series={byTool} dates={days} milestones={ms} onMilestonesChange={setMs} />;
}series–
{ label, values }[]Layers, aligned with dates.
dates–
Date[]The window.
bins–
numberFixed bins (60) so ranges morph.
milestones / onMilestonesChange–
{ id, date, label }[]Your annotations.
onHover–
(i) => voidFor your header.
components/ui/notchset/streamgraph.tsx
This component is included with Pro.
Try the live preview above. Get Pro to install the source.