Org chart
Who reports to whom, drawn top down with lines between managers and their teams. A team folds away behind a count, and the chart pans by dragging when it is wider than its frame.
- Amara OkaforChief executive
- Elias KimCTO
- Aiko TanakaPlatform lead
- Dev PatelData lead
- Hannah BrooksCOO
- Lena FischerFinance lead
- Omar AzizPeople lead
- Priya NairLegal counsel
- Kofi MensahHead of sales
When to use
- Team directories, approval chains and account hierarchies.
- Onboarding: who is who.
When not to use
- Large organisations as a whole; show one branch at a time.
- Process flows; use the flow diagram.
Installation
terminal
pnpm dlx shadcn@latest add @caliper/org-chart
Adds its 2 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
API reference
OrgChart
5 props
PropTypeDefault
label *string—
root *OrgNode—
defaultCollapsedreadonly string[][]
onSelect((node: OrgNode) => void)—
classNamestring—
Keyboard
- ↓
- Moves to the next item or value.
- ↑
- Moves to the previous item or value.
- →
- Moves to the next item or value.
- ←
- Moves to the previous item or value.
- Enter
- Activates the focused control.
- Space
- Activates the focused control.
Accessibility
It exposes none, treeitem, group and tree semantics, with aria-selected, aria-level, aria-expanded and aria-label kept in step with state.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/org-chart.mdThe index of every part is at /llms.txt.