UNPKG

@reggev/react-hierarchy

Version:

> A native React hierarchy chart > this project uses d3 for layout, react-spring for animations & react-svg-pan-zoom to manage the svg container.

13 lines (12 loc) 402 B
/// <reference types="react" /> import { SpringConfig } from '@react-spring/web'; import { TreeNode } from './index'; declare type Props<T> = { source: TreeNode<T>; target: TreeNode<T>; dx: number; dy: number; springConfig: SpringConfig; }; declare const Link: <T extends Record<string, any>>({ source, target, dx, dy, springConfig }: Props<T>) => JSX.Element; export default Link;