Ask Rift AI
Theme: Smoke
Layout: Contained
Background: Field
Search or ask anythingAsk Rift AI
Theme: Smoke
Layout: Contained
Background: Field
Colour mode: System

Org chart

Who reports to whom

Org chart draws people top down, each a card with their avatar, name and role, their reports in a row beneath them and lines between. Underneath it is nested lists, so a screen reader hears each person’s reports as a list inside their entry, and a chart wider than its column scrolls sideways.

A team

  • Ada LovelaceHead of product
    • Grace HopperDesign lead
      • Alan TuringProduct designer
      • Katherine JohnsonResearcher
    • Margaret HamiltonEngineering lead
      • Dennis RitchieEngineer
      • Barbara LiskovEngineer

Alternatives

  • Use Tree view instead when the hierarchy is a list to navigate and fold rather than people drawn as a chart.

Props

Read from the same JSDoc that ships in the package's types. A required prop is marked with an asterisk.

OrgChart props
PropTypeDefaultDescription
root*
OrgChartNode
The person at the top, with everyone under them.
label*
string
The chart's name, read before the people in it ("Design team").
linkComponent
LinkComponent
The component the people's links render with, such as Next.js's `Link`, so they navigate through the app's router; a plain `<a>` when unset. This component can render on the server, so it never reads a LinkProvider: pass the prop even under one.
className
string
''
Additional CSS classes

Keys

Each person whose name links to a profile is a native link, reached with Tab. Those keys belong to the platform, so no test of this library presses them.

tsx
// From the npm package
import { OrgChart } from 'rift-ds/components/OrgChart/OrgChart';

// Or as source you own, via the shadcn CLI
npx shadcn@latest add https://rift-ds.com/r/org-chart.json

1.4 kB gzipped, with everything it imports. Peer dependencies are not counted.

For agents: the props, their allowed values and defaults, and the tested keys, as markdown or as a JSON schema.