Skip to Content

Upgrade your apps with React Flow Prostarstarstar Examples

Get advanced React Flow code examples to use in your node-based UIs, crafted by the React Flow core team.

See Plans
Sign Upto get a free pro example
By the creators of React Flow

Feature-complete and crafted by the core team

Downloadable Vite apps and guides

Step-by-step instructions on how each example works

Regularly Added and Updated

Subscribers are the first to get new pro examples and refactors

Subscribe for one, use them forever

Download the pro examples and use them anywhere, anytime


Shapes Example Preview

Helper Lines Free Trial

Have guiding lines appear when the sides of your nodes are nearly lined up to assist users in aligning and positioning nodes in a diagram. Great for precise layouting and visual consistency like in design tools such as Figma and Miro.

Demo
Sign Upto get this example for free
Auto Layout screenshot
Auto Layout

Automatic layouting for nodes after adding new items with three algorithm implementations: dagre, elkjs, and d3-force. Perfect for complex workflows that need automatic positioning.

Demo
Collaborative screenshot
Collaborative

Real-time collaboration for multiple users based on yjs. Multiple users can simultaneously edit the same flow with synchronized changes and cursor tracking.

Demo
Copy and Paste screenshot
Copy and Paste

Copy and paste functionality for selected of nodes. This implementation demonstrates how to enable users to duplicate selected parts of a flow.

Demo
Dynamic Layouting screenshot
Dynamic Layouting

Dynamic node layout in a vertical tree flow. Learn how to implement a placeholder node to add new nodes to the flow and handle layout changes automatically.

Demo
Editable Edge screenshot
Editable Edge

Custom edges with draggable control points for bezier and linear edges. Allows users to adjust edge paths through dragging and keyboard controls.

Demo
Expand and Collapse screenshot
Expand and Collapse

Hierarchical flow with collapsible node trees. This example implements expandable and collapsible nodes.

Demo
Force Layout screenshot
Force Layout

Force based node positioning that prevents overlapping. Nodes dynamically adjust their positions based on connection strength and collision detection, creating natural-looking flows.

Demo
Helper Lines screenshot
Helper Lines

Visual guides and snapping for nodes while dragging. This example shows how to create a snapping system with visual helper lines.

Demo
Node Position Animation screenshot
Node Position Animation

This example shows how to implement a hook that animates between the previous and new node positions.

Demo
Parent Child Relation screenshot
Parent Child Relation

This example shows how to group nodes by dragging them into a container and detach them with a custom node toolbar button.

Demo
Selection Grouping screenshot
Selection Grouping

A grouping feature based on the selection box. This example shows how to group nodes together and ungroup them with a custom node toolbar button.

Demo
Server Side Image Creation screenshot
Server Side Image Creation

A tiny app that shows how to generate an image of a flow. Including a server for the image creation and a frontend to adjust and display the image.

Demo
Shapes screenshot
Shapes

Custom nodes in various shapes commonly used in flowcharts including diamonds, circles and cylinders. Demonstrates how to create node types with SVG shapes to represent different operations in technical diagrams, process flows, and business workflows.

Demo
Undo and Redo screenshot
Undo and Redo

This example shows how to implement undo and redo for adding, deleting, connecting, and positioning nodes and edges.

Demo

Get Started

Boost your apps with React Flow Pro

Get full access to all pro examples with just one month with a Pro subscription — from €129.

Are you a student, educator, or open source developer?
Get all of these Pro examples for free

For education purposes

Email us at info@xyflow.com using your university email address


For non-commercial open source projects

Contact us with the link to the github or gitlab repository