Columns of nodes joined by cubic bands in their source colour, bands into a signal node in signal, with particles riding each band and hover isolating a node or band.
pnpm dlx shadcn@latest add @beautiful-ui-pro/sankey-flowNeeds 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 { SankeyFlow, type SankeyColumn } from "@/components/ui/notchset/sankey-flow";
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 <SankeyFlow 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.
components/ui/notchset/sankey-flow.tsx
This component is included with Pro.
Try the live preview above. Get Pro to install the source.