Skip to content

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

PropTypeDescription
data*{ name: string; children: T[]; }
nodeItem*(props: T) => ReactElement<unknown, string | JSXElementConstructor<any>>
lineWidthnumberConnector line width in px.
nodePaddingnumberGap between a node and its connector lines, in px.

Search documentation

Search pages, components and blocks.