Skip to main content
The WorkflowBuilder component is the main visual workflow editor powered by React Flow.

Component

Props

Array<typeof Node>
Array of node classes to make available in the palette.
(workflow: Workflow) => void
Callback when workflow changes (nodes added/removed, connections changed, etc.).
Workflow
Optional initial workflow to load.
boolean
default:"true"
Show/hide the node palette sidebar.
boolean
default:"true"
Show/hide the property panel sidebar.
boolean
default:"true"
Show/hide the toolbar.
boolean
default:"false"
Show/hide JSON editor (Monaco).
'visual' | 'json' | 'split'
default:"'visual'"
Editor view mode.
(result: ExecutionResult) => void
Callback when workflow execution completes.
(error: Error) => void
Callback when an error occurs.
string
Additional CSS class for the container.
React.CSSProperties
Inline styles for the container.

Basic Usage

With Initial Workflow

Custom Configuration

JSON Editor Mode

Work in Progress: Monaco JSON editor integration is currently being implemented.

Features

Drag & Drop

Drag nodes from palette to canvas

Visual Connections

Connect nodes by dragging between ports

Property Editing

Edit node properties in the sidebar

Execute Workflows

Run workflows and view results

Save/Load

Import and export workflows as JSON

Undo/Redo

Coming soon

Event Handlers

onWorkflowChange

Called whenever the workflow structure changes:

onExecute

Called when workflow execution completes:

onError

Called when errors occur in the UI:

Styling

The WorkflowBuilder uses CSS modules and can be customized:

Complete Example

Hooks

React hooks API

Components

Individual components

Workflow Builder Guide

Complete guide

Examples

Full examples