Stop Rebuilding UI

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

Scroll to load preview

Installation

FAQ