Skip to main content
Package: @xyflow/react.
5 steps · 4 connections
needs reviewapproved
New request
Validate
Review
Publish
Notify

Drag a step, connect the handles, or select a connection and press Backspace to remove it.

Try it

Drag the steps, connect two handles, and use the zoom controls. Select an edge and press Backspace to remove it; Reset restores the starting graph.

Code

flow-example.tsx

Keyboard interaction

Tab to a node and use arrow keys to move it. Press Escape to release selection. The package supplies node descriptions and keyboard controls.

Rendering

Nodes include explicit dimensions and handle positions so the diagram can render in the initial HTML. Pan, zoom, and editing become available when the component hydrates. React Flow reference.