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
Name | Type | Default |
---|---|---|
connectionLineStyle | CSSProperties | |
connectionLineType | ConnectionLineType | |
fromNode | InternalNode<NodeType> The node the connection line originates from. | |
fromHandle | Handle The handle on the | |
fromX | number | |
fromY | number | |
toX | number | |
toY | number | |
fromPosition | Position | |
toPosition | Position | |
connectionStatus | "valid" | "invalid" | null If there is an | |
toNode | InternalNode<NodeType> | null | |
toHandle | Handle | null |
Last updated on