Reference
ConnectionLineComponentProps

ConnectionLineComponentProps

Source on GitHub (opens in a new tab)

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.

export type ConnectionLineComponentProps = {
  connectionLineStyle?: React.CSSProperties;
  connectionLineType: ConnectionLineType;
  fromNode?: Node;
  fromHandle?: HandleElement;
  fromX: number;
  fromY: number;
  toX: number;
  toY: number;
  fromPosition: Position;
  toPosition: Position;
  connectionStatus: 'valid' | 'invalid' | null;
};

Props

#connectionLineStyle?
#connectionLineType
#fromNode?
#fromHandle?
HandleElement
#fromX
number
#fromY
number
#toX
number
#toY
number
#fromPosition
#toPosition
#connectionStatus
"valid" | "invalid" | null