Show how quantities flow between stages, such as traffic or spend.
Import it and pass your content. The props that matter most are listed next.
import { SankeyChart, type SankeyColumn } from "@/components/ui/notchset/sankey-chart";
const columns: SankeyColumn[] = [
{ title: "SOURCE", nodes: [{ label: "API" }, { label: "SLACK" }] },
{ title: "AGENT", nodes: [{ label: "PLANNER" }, { label: "TRIAGE" }] },
{ title: "OUTCOME", nodes: [{ label: "RESOLVED" }, { label: "FAILED", signal: true }] },
];
// flows[c][i][j]: column c node i → column c + 1 node j.
const flows = [
[
[5200, 1400],
[1800, 2100],
],
[
[6400, 600],
[3100, 400],
],
];
export function RunJourney() {
return <SankeyChart columns={columns} flows={flows} summary="91.7% RESOLVED · 1,000 FAILED" />;
}columns–
{ title, nodes: { label, signal? }[] }[]Left to right.
flows–
number[][][]flows[c][i][j], column c node i to column c + 1 node j.
flow / perParticle / summary–
boolean / number / stringParticles and footer.
SankeyChartdata-slot="sankey-chart"
The chart.
components/ui/notchset/sankey-chart.tsx
This component is included with Pro.
Try the live preview above. Get Pro to install the source.
pnpm dlx shadcn@latest add @beautiful-ui-pro/sankey-chartNeeds 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.
Give your coding assistant the Markdown guide instead of screenshots.
https://beautiful-ui.dev/api/mcp (setup)v1.0.0 · 2026-10-02
First release
Pro is in early access.