UNPKG

@synergycodes/overflow-ui

Version:

A React library for creating node-based UIs and diagram-driven applications. Perfect for React Flow users, providing ready-to-use node templates and components that work seamlessly with React Flow's ecosystem.

24 lines (23 loc) 854 B
import { HTMLAttributes } from 'react'; import { EdgeLabelSize, EdgeState } from '../types'; type EdgeProps = { size?: EdgeLabelSize; isHovered?: boolean; /** * Determines the layout style for the EdgeLabel based on its content: * * text: Simple text label. * icon: Single icon without additional content. * compound: Mixed content like icons + text, multiple icons, etc. */ type?: EdgeLabelType; /** * The visual state of the edge. Determines base styles like `strokeWidth`. */ state?: EdgeState; }; type EdgeLabelType = 'text' | 'icon' | 'compound'; export declare const EdgeLabel: import('react').ForwardRefExoticComponent<EdgeProps & HTMLAttributes<HTMLDivElement> & { children?: import('react').ReactNode | undefined; } & import('react').RefAttributes<HTMLDivElement>>; export {};