Skip to main content
Package: @xyflow/react.
3 steps ยท 2 connections
Ingest
Transform
Publish

Connections must point forward without a cycle.

Try it

Try Publish โ†’ Ingest: it would close a cycle. Then try Ingest โ†’ Publish to add a valid shortcut. The form and canvas use the same validation function.

Code

flow-example.tsx
flow-data.ts

Connection rules

Self-connections, duplicate links, and cycles are rejected. Remove an existing edge, then try a connection that used to create a cycle. Validation uses the current graph.

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.