Connection
A custom connection line component for Vue Flow-based canvases with animated bezier curve styling.
The Connection component provides a styled connection line for Vue Flow canvases.
It renders an animated bezier curve with a circle indicator at the target end, using consistent theming through CSS variables.
Install using CLI
Install Manually
Copy and paste the following code in the same folder.
Features
- Smooth bezier curve animation for connection lines
- Visual indicator circle at the target position
- Theme-aware styling using CSS variables
- Cubic bezier curve calculation for natural flow
- Lightweight implementation with minimal props
- Full TypeScript support with Vue Flow types
- Compatible with Vue Flow's connection system
Props
<Connection />
sourceXnumber
sourceYnumber
targetXnumber
targetYnumber