UNPKG

react-hierarchy-chart

Version:

`ReactHierarchyChart` is an React Component for Vertical or Horizontal Hierarchy/Tree View. It can be used to show parent child view, Organization structure, Tree view. with your flaxible dynamic template design with controls.

23 lines (20 loc) 705 B
/// <reference types="react" /> interface INode { key: string; cssClass: string | ""; childs?: INode[]; } interface HiererchyNodeProps { node: INode; direction: 'vertical' | 'horizontal'; randerNode: Function; hasParent?: boolean; } declare const HierarchyNode: ({ node, direction, randerNode, hasParent }: HiererchyNodeProps) => JSX.Element; interface ReactHierarchyProps { nodes: INode[]; direction: 'vertical' | 'horizontal'; randerNode: Function; } declare const ReactHierarchy: ({ nodes, direction, randerNode }: ReactHierarchyProps) => JSX.Element; export { HierarchyNode, HiererchyNodeProps, INode, ReactHierarchy as ReactHiererchyChart };