UNPKG

react-horizontal-hiererchy-chart

Version:

A React component for displaying a horizontal hierarchy chart with customizable styling and data.

17 lines (16 loc) 340 B
export type Node = React.ReactElement | JSX.Element; export type Child<T = unknown> = { content: Node | string; cssClass?: string; border?: string; childs?: Child<T>[]; }; export type LevelObject = { [key: string]: ({ item, index, }: { item: string | Node; index: number; }) => JSX.Element; };