Components
Blocks
- Activity Rings Card
- Allocation Card
- Balance Chart Card
- Breakdown Card
- Contributions Card
- Data Table Card
- Distribution Card
- Dot Plot Card
- Dual Metric Card
- Funnel Chart Card
- Goal Chart Card
- Heatmap Chart Card
- Insight Card
- KPI Row Card
- Metric Tabs Chart Card
- Period Bar Chart Card
- Progress Card
- Ring KPI Card
- Score Gauge Card
- Stage Bars Card
- Status Gauge Card
- Tick KPI Card
A flow diagram with tinted links, colored node bars, and share labels, on shadcn's chart primitives.
"use client"
import { SankeyChart } from "@/components/ui/sankey-chart"Installation#
pnpm dlx shadcn@latest add https://dashboardcn.com/r/sankey-chart.jsonAlso installs chart from shadcn/ui if missing.
Usage#
import { SankeyChart } from "@/components/ui/sankey-chart"
<SankeyChart
nodes={[
{ name: "Focus" },
{ name: "Meetings" },
{ name: "Writing" },
{ name: "Calls" },
]}
links={[
{ source: "Focus", target: "Writing", value: 12 },
{ source: "Meetings", target: "Calls", value: 7 },
{ source: "Meetings", target: "Writing", value: 2 },
]}
valueFormatter={(value) => `${value}h`}
/>Examples#
Cash flow#
Income sources flowing into budget categories, with a currency formatter.
"use client"
import { SankeyChart } from "@/components/ui/sankey-chart"Your dashboard, your code.
Every component is copied into your project with the shadcn CLI. No package to upgrade, nothing to override.