Org chart

A top-down organizational chart.

  • AL Ada LovelaceCEO
    • GH Grace HopperCTO
      • AT Alan TuringEngineer
    • ED Edsger DijkstraCFO

With avatars

  • Ada LovelaceCEO
    • Grace HopperCTO
    • Edsger DijkstraCFO

API reference

bui-org-chart

Inputs

PropTypeDefaultDescription
nodeOrgNode | nullnullRoot node of the tree to render; `null` renders nothing.

li[buiOrgChartNode]

Inputs

PropTypeDefaultDescription
node*OrgNodeNode rendered as a card, with its `children` recursed into nested `<li>`s.

Types

OrgNode

FieldTypeDescription
namestringPerson's name shown on the card; its initials are used when no avatar is set.
title?stringOptional role or job title shown as a subtitle below the name.
avatar?stringOptional avatar image URL; falls back to initials when absent.
children?OrgNode[]Direct reports rendered recursively as child nodes beneath this one.

Every ng-blatui component also accepts a class input to merge extra Tailwind classes onto the host.