UNPKG

react-simple-arrows

Version:

react components which make it simple to draw svg arrows in a react app

16 lines (15 loc) 595 B
/// <reference types="react" /> import { LineOrientation } from '../constants'; import { ArrowAnchorPlacement } from './getArrowAnchorPositionForCoordinates'; export interface ArrowDivAnchorDefinition { id: string; placement: ArrowAnchorPlacement; } export declare const ArrowBetweenDivs: ({ from, to, orientation, curviness, color, strokeWidth, }: { from: ArrowDivAnchorDefinition; to: ArrowDivAnchorDefinition; orientation: LineOrientation; curviness?: number | undefined; color?: string | undefined; strokeWidth?: string | undefined; }) => JSX.Element | null;