GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • React Flow
  • Learn
  • Reference
  • Examples
  • UI
  • Showcase
  • React Flow Pro
  • Remove Attribution
  • GitHub
  • Discord

This view

  • Original page
  • New address

GeezerVison is showing reactflow.dev — Overview - React Flow

Overview

Browse our examples for practical copy-paste solutions to common use cases with React Flow. Here you can find our MIT Licensed examples, which you are free to use in your projects without restrictions, as well as our Pro examples that come with our React Flow Pro subscription plans.

Feature Overview Example PreviewFeature Overview Example Preview

Feature Overview

This is an overview example of React Flow's basic features. You can see built-in node and edge types, sub flows as well as NodeToolbar and NodeResizer components.

See example

Nodes

Add Node On Edge Drop screenshotAdd Node On Edge Drop screenshot

NODES

Add Node On Edge Drop

A new node appears wherever you drop the connection line

See example
Connection Limit screenshotConnection Limit screenshot

NODES

Connection Limit

Use the `isConnectable` prop to limit the number of connections a handle can have

See example
Custom Nodes screenshotCustom Nodes screenshot

NODES

Custom Nodes

Display any content inside of a node

See example
Delete Middle Node screenshotDelete Middle Node screenshot

NODES

Delete Middle Node

Remove a node without breaking the flow

See example
Drag Handle screenshotDrag Handle screenshot

NODES

Drag Handle

Restrict dragging to a specific part of node

See example
Easy Connect screenshotEasy Connect screenshot

NODES

Easy Connect

Make the whole node into a handle

See example
Intersections screenshotIntersections screenshot

NODES

Intersections

Detect when a node overlaps with another node

See example
Node Resizer screenshotNode Resizer screenshot

NODES

Node Resizer

Change the size of a node with a bounding box or draggable icon

See example
Node Toolbar screenshotNode Toolbar screenshot

NODES

Node Toolbar

A toolbar with buttons appears next to the selected node

See example
Proximity Connect screenshotProximity Connect screenshot

NODES

Proximity Connect

Automatically create edges when nodes get close to each other

See example
Rotatable Node screenshotRotatable Node screenshot

NODES

Rotatable Node

A custom node that can be rotated using CSS transforms

See example
Node Position Animation screenshotNode Position Animation screenshot

NODES

Node Position AnimationPro

Animate smooth transitions between different graph layouts with interactive controls

See example
Stress Test screenshotStress Test screenshot

NODES

Stress Test

Render hundreds of nodes and edges at once

See example
Updating Nodes screenshotUpdating Nodes screenshot

NODES

Updating Nodes

Update the data field of a specific node

See example
Shapes screenshotShapes screenshot

NODES

ShapesPro

Render Custom Nodes with different shapes that are commonly used in flow charts

See example

Edges

Animating Edges screenshotAnimating Edges screenshot

EDGES

Animating Edges

Create edge animations that go beyond the built-in animated edge.

See example
Connection Line screenshotConnection Line screenshot

EDGES

Connection Line

Change the appearance and behavior of the connection line

See example
Custom Edges screenshotCustom Edges screenshot

EDGES

Custom Edges

Create edges with special routing or controls along the edge

See example
Delete Edge on Drop screenshotDelete Edge on Drop screenshot

EDGES

Delete Edge on Drop

Delete an edge when it doesn't find a handle

See example
Edge Label Renderer screenshotEdge Label Renderer screenshot

EDGES

Edge Label Renderer

Render edge labels as divs on top of edges

See example
Edge Intersection screenshotEdge Intersection screenshot

EDGES

Edge Intersection

Detect edge intersections with nodes while dragging.

See example
Edge Toolbar screenshotEdge Toolbar screenshot

EDGES

Edge Toolbar

You can use the EdgeToolbar component to display content on top of an edge.

See example
Edge Types screenshotEdge Types screenshot

EDGES

Edge Types

Make edges straight, stepped, smooth-stepped, or bezier curved

See example
Edge Routing screenshotEdge Routing screenshot

EDGES

Edge RoutingPro

Implement a routable edge with libavoid

See example
Floating Edges screenshotFloating Edges screenshot

EDGES

Floating Edges

Instead of having the handle at a fixed point, let it move with the connected edge

See example
Edge Markers screenshotEdge Markers screenshot

EDGES

Edge Markers

Make your edges into arrows, add custom icons, or SVGs

See example
Multi Connection Line screenshotMulti Connection Line screenshot

EDGES

Multi Connection Line

Draw multiple connection lines at once from any selected nodes.

See example
Reconnect Edge screenshotReconnect Edge screenshot

EDGES

Reconnect Edge

Click-drag to move an existing edge from one handle to another

See example
Simple Floating Edges screenshotSimple Floating Edges screenshot

EDGES

Simple Floating Edges

Edges connect to the closest available handle

See example
Temporary Edges screenshotTemporary Edges screenshot

EDGES

Temporary Edges

Push what React Flow edges are capable of by rendering invisible ghost nodes.

See example
Editable Edge screenshotEditable Edge screenshot

EDGES

Editable EdgePro

Implement a custom edge with draggable control points to change the path of an edge

See example

Interaction

Computing Flows screenshotComputing Flows screenshot

INTERACTION

Computing Flows

This examples demonstrates how to use the helpers to handle data flow

See example
Connection Events screenshotConnection Events screenshot

INTERACTION

Connection Events

React Flow emits different events during the connection process. Use this example to get an overview of those events and what order they are called in.

See example
Context Menu screenshotContext Menu screenshot

INTERACTION

Context Menu

Right-click a node to display custom actions

See example
Contextual Zoom screenshotContextual Zoom screenshot

INTERACTION

Contextual Zoom

Only display the content of a node when you are zoomed in close enough

See example
Drag and Drop screenshotDrag and Drop screenshot

INTERACTION

Drag and Drop

Drag and drop outside of the React Flow pane with native HTML Drag and Drop API or react-draggable.

See example
Preventing Cycles screenshotPreventing Cycles screenshot

INTERACTION

Preventing Cycles

Check if a new connection would cause a cycle in the graph

See example
Save and Restore screenshotSave and Restore screenshot

INTERACTION

Save and Restore

Save the state of the diagram, and reload it after refreshing the page

See example
Touch Device screenshotTouch Device screenshot

INTERACTION

Touch Device

Tap two handles to connect them, and make handles bigger for smaller devices

See example
Validation screenshotValidation screenshot

INTERACTION

Validation

Check if a new connection is valid and should be added

See example
Helper Lines screenshotHelper Lines screenshot

INTERACTION

Helper LinesPro

Display lines that help to visually align nodes, with automatic snapping for precise positioning and layout control.

See example
Collaborative screenshotCollaborative screenshot

INTERACTION

CollaborativePro

Build a collaborative graph for multiple users with React Flow and yjs

See example
Copy and Paste screenshotCopy and Paste screenshot

INTERACTION

Copy and PastePro

Select nodes and edges to cut, copy, and paste

See example
Undo and Redo screenshotUndo and Redo screenshot

INTERACTION

Undo and RedoPro

Undo and redo functionality for moving, adding, and deleting nodes and edges

See example

Subflows & Grouping

Selection Grouping screenshotSelection Grouping screenshot

SUBFLOWS & GROUPING

Selection GroupingPro

This example demonstrates how to create dynamic node grouping in React Flow.

See example
Parent Child Relation screenshotParent Child Relation screenshot

SUBFLOWS & GROUPING

Parent Child RelationPro

Dynamically attach and detach nodes from parent containers with drag and drop functionality

See example
Sub Flow screenshotSub Flow screenshot

SUBFLOWS & GROUPING

Sub Flow

Render nested graphs and group nodes, and configure the behavior of child nodes

See example

Layout

Dagre Tree screenshotDagre Tree screenshot

LAYOUT

Dagre Tree

Integrate dagre js with React Flow to create simple tree layouts

See example
Elkjs Tree screenshotElkjs Tree screenshot

LAYOUT

Elkjs Tree

For a more powerful alternative to dagre, you can also use elkjs to layout your graphs

See example
Elkjs Multiple Handles screenshotElkjs Multiple Handles screenshot

LAYOUT

Elkjs Multiple Handles

Use multiple handles with the elkjs layouting engine to reduce edge crossings

See example
Horizontal Flow screenshotHorizontal Flow screenshot

LAYOUT

Horizontal Flow

A diagram that flows from left to right

See example
Expand and Collapse screenshotExpand and Collapse screenshot

LAYOUT

Expand and CollapsePro

Create hierarchical trees with expandable and collapsible nodes using dagre for automatic layouts

See example
Auto Layout screenshotAuto Layout screenshot

LAYOUT

Auto LayoutPro

Automatically arrange nodes using various layout engines like dagre, d3-hierarchy, or elkjs

See example
Force Layout screenshotForce Layout screenshot

LAYOUT

Force LayoutPro

Newly added nodes never overlap with existing nodes using d3-force

See example
Dynamic Layouting screenshotDynamic Layouting screenshot

LAYOUT

Dynamic LayoutingPro

A self-organizing graph where users add nodes by clicking placeholder elements, and nodes position automatically.

See example
Node Collisions screenshotNode Collisions screenshot

LAYOUT

Node Collisions

Automatically resolve node overlaps using collision detection algorithms

See example

Styling

Base Style screenshotBase Style screenshot

STYLING

Base Style

Show the bare-bones base style that is built into React Flow, but is not used by default

See example
Dark Mode screenshotDark Mode screenshot

STYLING

Dark Mode

React Flow comes with a color mode prop that allows you to switch between dark, light and system mode.

See example
Tailwind screenshotTailwind screenshot

STYLING

Tailwind

Use Tailwind CDN to easily make nice looking flows

See example
Turbo Flow screenshotTurbo Flow screenshot

STYLING

Turbo Flow

Nodes with glowing animated gradient borders, inspired by the turbo.build website

See example

Whiteboard

Eraser Tool screenshotEraser Tool screenshot

WHITEBOARD

Eraser Tool

A tool that let's you delete nodes and edges by wiping

See example
Lasso Selection screenshotLasso Selection screenshot

WHITEBOARD

Lasso Selection

An example about selecting multiple items using a lasso selection tool.

See example
Rectangle screenshotRectangle screenshot

WHITEBOARD

Rectangle

An example about drawing rectangles on a whiteboard using React Flow.

See example
Freehand Draw screenshotFreehand Draw screenshot

WHITEBOARD

Freehand DrawPro

Freehand drawing on the canvas.

See example

Misc

Download Image screenshotDownload Image screenshot

MISC

Download Image

Save a flow as a png with the html-to-image library

See example
Server Side Image Creation screenshotServer Side Image Creation screenshot

MISC

Server Side Image CreationPro

Generate static images of React Flow graphs on the server with Puppeteer

See example
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.