Flow kit Pro
Get Pro at $9
One payment, every Pro piece. $10 tomorrow.
Install
npx shadcn@latest add @mu-pro/flow-kitPro. Installs with your licence key through the @mu-pro registry; the key comes with Pro. Lands in components/mu/flow-kit/ with the shared foundation.
Usage
import { ReactFlow, Background } from "@xyflow/react";
import { FlowKit, FlowNode, GooEdge, ReadableFit, TaffyLine } from "@/components/mu/flow-kit/FlowKit";
const nodeTypes = { step: FlowNode };
const edgeTypes = { goo: GooEdge };
<FlowKit>
<ReactFlow
nodes={nodes}
edges={edges}
nodeTypes={nodeTypes}
edgeTypes={edgeTypes}
connectionLineComponent={TaffyLine}
fitView
>
<Background color="var(--flow-kit-dot)" gap={24} size={1.2} />
<ReadableFit />
</ReactFlow>
</FlowKit>Source
How it works
Building with an agent? Hand it a ready prompt for this piece.
Input and reduced motion
- Pointer / touch: drag from a handle to draw a link (the strand tracks the pointer exactly); press "+" to bud the palette, pick a step to add it; "Retry" runs a failed step again. Handles take a 44px touch target on touch screens.
- Keyboard: the run key, each "+" and the retry key are buttons. The palette is a menu: arrows, Home and End move, Enter picks, Escape closes it and returns to the "+". Moving nodes and links by keyboard is the canvas's own (
nodesFocusable,edgesFocusable). - Reduced motion: no droplets travel and nothing waits for them: statuses land at once, a stall shows at once. The strand neither sags nor thins, the edge appears at rest, and the palette appears at its size. The running bead does not breathe; its colour and "Running…" say it.
Props
| Prop | Default | What it does |
|---|---|---|
accent | off | boolean | tints the success light toward your --mu-signal |
run | — | idle running done failed | the run as a whole, written to data-run for your CSS |
className | — | — | added to the root |
Sound
None. It loads in silence.
None: nothing here is pressed for its own sake, and a run is not the person's gesture.
Licence
Included with Pro: use it in unlimited end products for you and your clients; no reselling as a kit. See the licence.
Parts for a node canvas: nodes with typed handles and a status bead, goo edges that fire in the data's direction, a taffy line that snaps, and a bud of next steps.
For workflow builders and agent canvasesMore in AI & agents