Updated
Flow Chart
ProCustomize
Height320px
Accent
Installation
ProFlow Chart is a Pro component
Sign in to see the source, or install it with a license key. The live preview and props above are free to explore.
Install with a key
- Add the Pro registry to
components.json:components.json { "registries": { "@uibrik-pro": { "url": "https://uibrik.com/r/pro/{name}.json", "headers": { "Authorization": "Bearer ${UIBRIK_LICENSE}" } } } } - Put your key in
.env.localand add that file to.gitignore:.env.local UIBRIK_LICENSE=your-license-key - Install it:
Terminal npx shadcn@latest add @uibrik-pro/flow-chart
Loading your installation…
Usage
import { FlowChart } from "@/components/uibrik/flow-chart/flow-chart";const links = [ { source: "Organic", target: "Free", value: 3200 }, { source: "Organic", target: "Pro", value: 1800 }, // …11 more];<FlowChart title="Customer flow" height={320} particles accent="" links={links} format={{}}/>Where to use Flow Chart
Budget breakdowns
A Sankey shows where money comes from and where it goes in one picture.
Pairs with Split Bar
User journeys
Pointing at a node lights its whole path, so analysts can follow one traffic source end to end.
Pairs with Funnel
Energy and supply flows
Ribbons sized by volume make large systems of inputs and outputs readable.
Props
FlowChart- title
- Type string
- "Customer flow"
- Names what is plotted.
- height
- Type number
- 320
- Plot height.
- particles
- Type boolean
- true
- Little dots that travel along the flows you point at.
- accent
- Type string
- ""
- First colour. Empty uses the chart palette.
- links
- Type { source: string; target: string; value: number }[]
- –
- Flows between nodes. Columns follow the links, left to right.
- format
- Type Intl.NumberFormatOptions
- {}
- Formats every number.
- className
- Type string
- –
- Classes for the outer shell.