Workflow Builder
A reusable, customizable, production-ready Workflow Builder component. Features infinite canvas, zoom/pan, custom nodes, bezier edge rendering, and full drag-and-drop support out of the box with zero heavy third-party canvas dependencies.
data-display Premium Plan
Availability
Included in Premium Plans
This flagship component is part of Future UI's monthly & yearly Premium plans and is not distributed via the free public CLI.
Import
import { WorkflowBuilder } from "@/components/ui/workflow-builder"
Color Theme
Named Keys & Props
Pass these exact named keys as props on <WorkflowBuilder />. Click any color pill to copy the prop.
colorDefault is "default"(Black & White)variantVisual style"default""enterprise""minimal""glass""compact"shapeCorner shape"default""square""rounded""sharp"spacingInner spacing"default""2x""4x""6x""8x"Usage Example
A basic implementation example to get you started.
Example Implementation
import { WorkflowBuilder } from"@/components/ui/workflow-builder";
export default function Example() {
return (
<div className="w-full h-150">
<WorkflowBuilder
variant="enterprise"
initialNodes={[
{ id:"1", type:"trigger", position: { x: 100, y: 200 }, data: { label:"Webhook"} },
{ id:"2", type:"agent", position: { x: 500, y: 200 }, data: { label:"AI Processor"} }
]}
initialEdges={[
{ id:"e1-2", source:"1", target:"2", animated: true }
]}
/>
</div>
);
}Features
Key capabilities and highlights.
Key Capabilities
- ◆Bespoke Infinite Canvas with native Zoom and Pan controls via CSS transforms.
- ◆SVG-based edge rendering using smooth bezier curves.
- ◆Framer Motion powered node dragging and interaction.
- ◆Integrated MiniMap and Toolbar components.
- ◆Out-of-the-box state management for adding nodes and connecting edges.
- ◆Support for custom node types via the nodeTypes prop.
- ◆Keyboard accessibility (Delete/Backspace to remove selected nodes/edges).
- ◆Multiple visual variants: Default, Enterprise, Minimal, Glass, Compact.
Notes
Important implementation details to consider.
Implementation Details
- ◆Plan: Included in Future UI Monthly & Yearly Premium Plans.
- ◆Context: Wrap your custom nodes inside the builder. It automatically provides the Context for Zooming and Panning.
- ◆Custom Nodes: Pass an object mapping string types to React components via the nodeTypes prop.
- ◆Variants: Toggle between enterprise, minimal, glass, etc., via the variant prop.