Fragiola

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 exampleFlow example
Custom Nodes, Updating Nodes, Drag HandleCustom nodes
Node ResizerNode resizer
Node ToolbarNode toolbar
Add Node On Edge Drop, Drag and DropAdd nodes
Connection Limit, Validation, Preventing CyclesConnection validation
Connection EventsAnnouncements
Computing FlowsData from connections
Context MenuContext menu
Save and RestoreSave and restore
Undo and RedoUndo and redo
Edge Types, Custom EdgesEdge types
Edge Label Renderer, Edge ToolbarEdge labels
Reconnect Edge, Delete Edge on DropEdge reconnect (its "Delete on drop" switch removes an edge whose end is dropped nowhere)
Sub Flow, Parent Child Relation, Selection GroupingSub-flows (its "Group selection" and "Ungroup" buttons)
Base Style, Dark Mode, Tailwindthe five themes every example runs in: Tailwind classes in each example's styles.ts, and the dark theme (see Theming)
Shapes, Rotatable NodeShapes
Easy Connect, Touch DeviceEasy connect
Proximity Connect, Temporary EdgesProximity connect
Delete Middle NodeDelete middle node
Intersections, Node Collisions, Edge IntersectionIntersections
Contextual ZoomContextual zoom
Custom Connection Line, Multi Connection LineConnection line
Edge MarkersEdge markers
Animating EdgesAnimating edges
Floating Edges, Simple Floating EdgesFloating edges
Editable Edge, Edge RoutingEditable edge
Turbo FlowGradient styling (gradient borders and glowing edges, in its own look)
Rectangle, Freehand Draw, Eraser Tool, Lasso SelectionWhiteboard
Helper LinesHelper lines
Copy and PasteCopy and paste
CollaborativeCollaborative
Download Image, Server Side Image CreationExport image
Stress TestStress test
Dagre Tree, Horizontal Flow, Node Position AnimationDagre layout
Elkjs Tree, Elkjs Multiple HandlesELK layout
Auto Layout, Dynamic Layouting, Expand and CollapseAuto layout
Force LayoutForce 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).