Flow
A node-and-edge canvas for workflows, pipelines, agent trees and driver maps, themed with Gaudi tokens and built on React Flow.
Installation
Import from @gaudi/design-system. Load @gaudi/design-system/global.css once and add transpilePackages: ['@gaudi/design-system'] in Next.js.
Copy an example into your project with the shadcn CLI: npx shadcn@latest add https://design.gaudi.site/r/flow-agent-tree.json.
Usage
Examples
Agent tree with test run
Automation workflow editor
Growth impact map
Payments pipeline with an inspector
Pipeline run monitor
API
Accessibility
The canvas is a labelled region described by a step count, followed by a visually hidden list of every step and where it leads. Nodes and edges are focusable: Enter or Space selects, arrow keys move a selected node and Delete removes it, with React Flow announcing moves. Controls, menus and insert buttons are labelled; handles are pointer targets described by their node. Dragging is never the only way to edit: offer menus, toolbars or an inspector for the same actions.
Notes
- Requires the @xyflow/react peer dependency; its structural CSS is imported inside the Gaudi stylesheet.
- React Flow does not provide a keyboard way to draw a new connection between handles; offer an inspector field or menu action for linking.
- Give the canvas an explicit height with className; it scrolls and zooms inside its own region.