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
- Nested lists of buttons: the nesting carries the hierarchy, each person is one Tab stop, and the picked one is pressed (
v-model:selected). #noderenders a node yourself with{ node, selected }.
Usage
ts
import { BlessOrgChart, BlessOrgChartNode } from "blessing-ui";API
BlessOrgChart
Props
| Name | Type | Default | Description |
|---|---|---|---|
nodes* | BlessTreeNode[] | — | |
label | string | "Organisation" | |
selected | string | — |
Events
| Name | Payload | Description |
|---|---|---|
select | [node: BlessTreeNode, id: string] | |
update:selected | [value: string | undefined] |
Slots
| Name | Scope | Description |
|---|---|---|
node | { node: BlessTreeNode; selected: boolean; } |
BlessOrgChartNode
Props
| Name | Type | Default | Description |
|---|---|---|---|
node* | BlessTreeNode | — | |
path* | string | — | |
selected | string | — |
Events
| Name | Payload | Description |
|---|---|---|
select | [node: BlessTreeNode, id: string] |
Slots
| Name | Scope | Description |
|---|---|---|
node | { node: BlessTreeNode; selected: boolean; } |