Live Examples
All examples are available as live demos on vueflow.dev/examples. You can interact with them, view the source code, and see how they work in real-time.Example Categories
Basic Flow
Get started with a simple flow example including nodes, edges, and basic interactions
Custom Nodes
Create custom node components with your own styling and behavior
Custom Edges
Build custom edge components with labels, buttons, and interactions
Validation
Validate connections before they’re created
Drag and Drop
Add nodes to the flow by dragging them from a sidebar
Save & Restore
Save flow state to local storage and restore it later
Interaction
Control all interaction settings dynamically
Nested Flows
Create parent-child node relationships
Getting Started
Each example includes:- Complete, runnable code
- Explanations of key concepts
- Links to relevant API documentation
- Live demo when available
All examples use the Composition API with
<script setup>. For Options API examples, check the basic flow example.Example Template
Most examples follow this basic structure:Running Examples Locally
To run the examples locally:http://localhost:3000.