Guides
Coming from xyflow's examples
The examples on React Flow's examples page as of November 2026, each with the gallery example that shows the same case, so a team moving from xyflow finds it.
React Flow (xyflow) has a catalogue of examples, and a team moving from it looks for the same cases here. This page maps the examples its examples page listed in November 2026, the ones in the table below, to the gallery example that shows each; an example React Flow added later is not here until this page is updated. Some cases share an example, because one flow shows them together. A few are not an example: the five themes every example runs in cover them. Every example is our own code, data and look: React Flow was a reference for the behaviour only, and nothing was copied from it.
The newest examples are written in React first, and Vue, Svelte and Angular follow. What the package leaves to the app (layout, undo, copy and paste, helper lines) is code in the example that you copy: see What it never ships.
The map
| React Flow example | Flow example |
|---|---|
| Custom Nodes, Updating Nodes, Drag Handle | Custom nodes |
| Node Resizer | Node resizer |
| Node Toolbar | Node toolbar |
| Add Node On Edge Drop, Drag and Drop | Add nodes |
| Connection Limit, Validation, Preventing Cycles | Connection validation |
| Connection Events | Announcements |
| Computing Flows | Data from connections |
| Context Menu | Context menu |
| Save and Restore | Save and restore |
| Undo and Redo | Undo and redo |
| Edge Types, Custom Edges | Edge types |
| Edge Label Renderer, Edge Toolbar | Edge labels |
| Reconnect Edge, Delete Edge on Drop | Edge reconnect (its "Delete on drop" switch removes an edge whose end is dropped nowhere) |
| Sub Flow, Parent Child Relation, Selection Grouping | Sub-flows (its "Group selection" and "Ungroup" buttons) |
| Base Style, Dark Mode, Tailwind | the five themes every example runs in: Tailwind classes in each example's styles.ts, and the dark theme (see Theming) |
| Shapes, Rotatable Node | Shapes |
| Easy Connect, Touch Device | Easy connect |
| Proximity Connect, Temporary Edges | Proximity connect |
| Delete Middle Node | Delete middle node |
| Intersections, Node Collisions, Edge Intersection | Intersections |
| Contextual Zoom | Contextual zoom |
| Custom Connection Line, Multi Connection Line | Connection line |
| Edge Markers | Edge markers |
| Animating Edges | Animating edges |
| Floating Edges, Simple Floating Edges | Floating edges |
| Editable Edge, Edge Routing | Editable edge |
| Turbo Flow | Gradient styling (gradient borders and glowing edges, in its own look) |
| Rectangle, Freehand Draw, Eraser Tool, Lasso Selection | Whiteboard |
| Helper Lines | Helper lines |
| Copy and Paste | Copy and paste |
| Collaborative | Collaborative |
| Download Image, Server Side Image Creation | Export image |
| Stress Test | Stress test |
| Dagre Tree, Horizontal Flow, Node Position Animation | Dagre layout |
| Elkjs Tree, Elkjs Multiple Handles | ELK layout |
| Auto Layout, Dynamic Layouting, Expand and Collapse | Auto layout |
| Force Layout | Force layout |
What the examples bring
Only the layout examples use a library of their own: @dagrejs/dagre, elkjs and d3-force,
which you install with the example's code (its code panel lists them). The rest is
built in the example from the package's API: the collaborative one syncs over a
BroadcastChannel, the image export draws its SVG from the flow's geometry and turns it into a PNG
on a canvas, and the whiteboard smooths its strokes itself.
Every layout example moves the nodes the same way, whatever computes the positions: an animation
is one node.move batch per frame run as a transient step, then one final batch the history keeps
(see Transient steps and batches).