Canvas
A Vue Flow-based canvas component for building interactive node-based interfaces.
The Canvas component provides a Vue Flow-based canvas for building interactive node-based interfaces.
It comes pre-configured with sensible defaults for AI applications, including panning, zooming, and selection behaviors.
Install using CLI
Install Manually
Copy and paste the following code in the same folder.
Features
- Pre-configured Vue Flow canvas with AI-optimized defaults
- Pan on scroll enabled for intuitive navigation
- Selection on drag for multi-node operations
- Customizable background color using CSS variables
- Delete key support (Backspace and Delete keys)
- Auto-fit view to show all nodes
- Disabled double-click zoom for better UX
- Disabled pan on drag to prevent accidental canvas movement
- Fully compatible with Vue Flow props and API
Props
<Canvas />
<slot />FlowSlots
propsFlowProps