Skip to content
Calm motion: animations on this site only fade, with no movement

OrgChart ​

Node tree with connectors

Who reports to whom, drawn top-down: a team, a cast and crew, a small hierarchy that fits on screen. For a deep or wide hierarchy people browse and expand, use Tree.

Basic
selected: megumi · `href` is reused as the role line in the default node
  • Nested lists of buttons: the nesting carries the hierarchy, each person is one Tab stop, and the picked one is pressed (v-model:selected).
  • #node renders a node yourself with { node, selected }.

Usage ​

ts
import { BlessOrgChart } from "blessing-ui";

API ​

BlessOrgChart ​

Props

NameTypeDefaultDescription
nodes*BlessTreeNode[]—
labelstring"Organisation"
selectedstring—

Events

NamePayloadDescription
select[node: BlessTreeNode, id: string]
update:selected[value: string | undefined]

Slots

NameScopeDescription
node{ node: BlessTreeNode; selected: boolean; }

Released under the MIT License. Character names and artwork belong to their owners.