Live Demo
View the live demo on vueflow.dev.Complete Example
Key Features
Nodes and Edges
Define your flow structure with nodes and edges:useVueFlow Composable
Access Vue Flow’s API and configuration:Handle Connections
Automatically create edges when nodes are connected:Additional Components
- Background
- MiniMap
- Controls
- Panel
Utility Functions
Update Node Positions
Reset Viewport
Export Flow State
toObject() method returns the complete flow state including nodes, edges, and viewport.
Configuration Options
The
fit-view-on-init prop automatically adjusts the viewport to fit all nodes when the flow is initialized.Next Steps
Custom Nodes
Learn how to create custom node components
Custom Edges
Build custom edge components
API Reference
Explore all available props and events
Composables
Discover powerful composable functions