Skip to Content
Vue Flow v2 is here and joins xyflow! Read more here →

Overview

Browse our examples for practical copy-paste solutions to common use cases with Vue 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 Vue Flow Pro subscription plans.

Nodes

Add 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 screenshot

NODES

Connection Limit

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

See example
Custom Nodes screenshot

NODES

Custom Nodes

Display any content inside of a node

See example
Delete Middle Node screenshot

NODES

Delete Middle Node

Remove a node without breaking the flow

See example
Detached Handle screenshot

NODES

Detached Handle

A custom node whose connection handle sits apart from the node body.

See example
Drag Handle screenshot

NODES

Drag Handle

Restrict dragging to a specific part of node

See example
Easy Connect screenshot

NODES

Easy Connect

Make the whole node into a handle

See example
Hidden screenshot

NODES

Hidden

Toggle the visibility of nodes and edges with the hidden property.

See example
Intersections screenshot

NODES

Intersections

Detect when a node overlaps with another node

See example
Node Position Animation screenshot

NODES

Node Position AnimationPro

Animate smooth transitions between different graph layouts with interactive controls

See example
Node Resizer screenshot

NODES

Node Resizer

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

See example
Node Toolbar screenshot

NODES

Node Toolbar

A toolbar with buttons appears next to the selected node

See example
Proximity Connect screenshot

NODES

Proximity Connect

Automatically create edges when nodes get close to each other

See example
Rotatable Node screenshot

NODES

Rotatable Node

A custom node that can be rotated using CSS transforms

See example
Shapes screenshot

NODES

ShapesPro

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

See example
Stress Test screenshot

NODES

Stress Test

Render hundreds of nodes and edges at once

See example
Teleport screenshot

NODES

Teleport

Click a node to teleport it between the flow canvas and a sidebar with Vue's Teleport.

See example
Updating Nodes screenshot

NODES

Updating Nodes

Update the data field of a specific node

See example

Edges

Interaction

Collaborative screenshot

INTERACTION

CollaborativePro

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

See example
Computing Flows screenshot

INTERACTION

Computing Flows

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

See example
Confirm Delete screenshot

INTERACTION

Confirm Delete

Ask for confirmation with a dialog before nodes or edges are deleted.

See example
Connection Events screenshot

INTERACTION

Connection Events

Vue 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 screenshot

INTERACTION

Context Menu

Right-click a node to display custom actions

See example
Contextual Zoom screenshot

INTERACTION

Contextual Zoom

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

See example
Copy and Paste screenshot

INTERACTION

Copy and PastePro

Select nodes and edges to cut, copy, and paste

See example
Drag and Drop screenshot

INTERACTION

Drag and Drop

Drag and drop outside of the Vue Flow pane with native HTML Drag and Drop API or neodrag.

See example
Helper Lines screenshot

INTERACTION

Helper LinesPro

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

See example
Interaction Props screenshot

INTERACTION

Interaction Props

Toggle whether nodes can be dragged, selected, or connected, and how the pane pans and zooms

See example
Preventing Cycles screenshot

INTERACTION

Preventing Cycles

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

See example
Save and Restore screenshot

INTERACTION

Save and Restore

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

See example
Touch Device screenshot

INTERACTION

Touch Device

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

See example
Undo and Redo screenshot

INTERACTION

Undo and RedoPro

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

See example
Validation screenshot

INTERACTION

Validation

Check if a new connection is valid and should be added

See example
Viewport Transition screenshot

INTERACTION

Viewport Transition

Double-click a node to smoothly animate the viewport to it.

See example
Zoom Transitions screenshot

INTERACTION

Zoom Transitions

Smoothly transition between different zoom levels

See example

Subflows & Grouping

Layout

Styling

Whiteboard

Misc