Organizational Chart
Hierarchical tree of people or units.
Installation
bun add @xerobi/ui
import { OrganizationalChart } from "@xerobi/ui/organizational-chart"This component is client-side. In Astro, hydrate it with a client directive.
API reference
OrganizationalChart
| Prop | Type | Description |
|---|---|---|
| data* | { name: string; children: T[]; } | |
| nodeItem* | (props: T) => ReactElement<unknown, string | JSXElementConstructor<any>> | |
| lineWidth | number | Connector line width in px. |
| nodePadding | number | Gap between a node and its connector lines, in px. |