ConnectionLineComponentProps
If you want to render a custom component for connection lines, you can set the
connectionLineComponent prop on the
<ReactFlow /> component.
The ConnectionLineComponentProps are passed to your custom component.
Props
If you want to render a custom component for connection lines, you can set the
connectionLineComponent prop on the <ReactFlow />
component. The ConnectionLineComponentProps are passed to your custom component.
connectionLineStyle?: CSSPropertiesconnectionLineType: ConnectionLineTypefromNode: InternalNode<NodeType>The node the connection line originates from.fromHandle: HandleThe handle on thefromNodethat the connection line originates from.fromX: numberfromY: numbertoX: numbertoY: numberfromPosition: PositiontoPosition: PositionconnectionStatus: "valid" | "invalid" | nullIf there is anisValidConnectioncallback, this prop will be set to"valid"or"invalid"based on the return value of that callback. Otherwise, it will benull.toNode: InternalNode<NodeType> | nulltoHandle: Handle | nullpointer: XYPosition