Shadcn.io is not affiliated with official shadcn/ui
React AI Connection
React AI connection line component for ReactFlow canvas showing curved bezier paths between nodes
When users drag to create a new connection between nodes, this is what they see—a smooth bezier curve with a little circle at the end showing where it'll attach. It's the "live preview" while dragging, before the edge is actually created. Uses your theme's ring color so it fits naturally with your design. The curve math is pretty standard (control points at 50% horizontal distance) but it looks good for typical left-to-right workflow layouts. Pair it with the Edge component for the final static connections.
Connection preview
Installation
Related Components
React AI Canvas
Node-based visual editor
React AI Edge
Static node connections
React AI Node
Draggable canvas nodes
React AI Controls
Zoom and pan controls
React AI Panel
Side panel overlays
React AI Plan
Workflow planning