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.

15 lines (14 loc) 437 B
/// <reference types="react" /> import "./HierarchyNode.scss"; export interface INode { key: string; cssClass: string | ""; childs?: INode[]; } export interface HiererchyNodeProps { node: INode; direction: 'vertical' | 'horizontal'; randerNode: Function; hasParent?: boolean; } export declare const HierarchyNode: ({ node, direction, randerNode, hasParent }: HiererchyNodeProps) => JSX.Element;