UNPKG

@jalez/react-flow-smart-edge

Version:

Smart edge routing for @xyflow/react v12+ (maintained fork of @tisoap/react-flow-smart-edge)

14 lines (13 loc) 537 B
import React from 'react'; import type { GetSmartEdgeOptions } from '../getSmartEdge'; import type { EdgeProps, Node } from '@xyflow/react'; export type EdgeElement = React.ComponentType<any>; export type SmartEdgeOptions = GetSmartEdgeOptions & { fallback?: EdgeElement; }; export interface SmartEdgeProps extends EdgeProps { nodes: Node[]; options: SmartEdgeOptions; } export declare function SmartEdge({ nodes, options, ...edgeProps }: SmartEdgeProps): React.JSX.Element; export type SmartEdgeFunction = typeof SmartEdge;