OrganizationChart

OrganizationChart visualizes hierarchical organization data.

  • Amy Elsner
    Founder & CEO
    • Asiya Javayant
      Product Lead
      • Anna Fali
        UX Designer
      • Bernardo Dominic
        Product Manager
    • Onyama Limba
      Engineering Lead
      • Elwin Sharvill
        Frontend Engineer
      • Stephen Shaw
        Backend Engineer
PREVIEW

Displays a hierarchy from the value collection.

  • Founder
    • Product Lead
      • UX/UI Designer
      • Product Manager
    • Engineering Lead
      • Frontend Developer
      • Backend Developer
basic-demo

Use the collapsible prop to make nodes collapsible.

  • Founder
    • Product Lead
      • UX/UI Designer
      • Product Manager
    • Engineering Lead
      • Frontend Developer
      • Backend Developer
collapsible-demo

Control the collapsed state with v-model:collapsedKeys. A key present with true is collapsed; absent keys stay expanded.

  • Founder
    • Product Lead
      • UX/UI Designer
      • Product Manager
    • Engineering Lead
      • Frontend Developer
      • Backend Developer
controlled-demo

The #default slot customizes the node content. OrganizationChart still renders its own structure around it — the content is placed inside .p-organizationchart-node-content, and the built-in collapse button is preserved. The slot scope exposes node, icon, selected, partialSelected, collapsed, toggleSelection and labelClass.

The collapse indicator is customized with the #toggleicon slot, which receives the current collapsed state — shown here with the Plus and Minus icons.

  • AWS Cloud
    us-east-1
    • Compute
      Workloads & runtime
      • EC2
        Virtual servers
      • Lambda
        Serverless functions
    • Storage
      Data persistence
      • S3
        Object storage
      • RDS
        Managed databases
    • Networking
      Edge & access
      • CloudFront
        Global CDN
      • IAM
        Access policies
content-demo

Set selectionMode to single to keep one node selected. Bind the selection with v-model:selectionKeys.

Selected: -
  • Founder
    • Product Lead
      • UX/UI Designer
      • Product Manager
    • Engineering Lead
      • Frontend Developer
      • Backend Developer
selection-single-demo

With multiple, each node toggles independently.

Selected: -
  • Founder
    • Product Lead
      • UX/UI Designer
      • Product Manager
    • Engineering Lead
      • Frontend Developer
      • Backend Developer
selection-multiple-demo

Checkbox selection cascades to descendants and reflects partial selection on ancestors.

  • Founder
    • Product Lead
      • UX/UI Designer
      • Product Manager
    • Engineering Lead
      • Frontend Developer
      • Backend Developer
selection-checkbox-demo

Screen Reader

Component uses ARIA roles and attributes for screen reader accessibility. The root element has role="tree" with aria-multiselectable for multiple selection support. Each tree item uses role="treeitem" with aria-level for hierarchy, aria-expanded for collapse state, and aria-selected for selection state. Child nodes are grouped with role="group".

Keyboard Support

Node

KeyFunction
tabMoves focus through the focusable nodes within the chart.
enterToggles the selection state of a node.
spaceToggles the selection state of a node.

Collapse Button

KeyFunction
tabMoves focus through the focusable elements within the chart.
enterToggles the expanded state of a node.
spaceToggles the expanded state of a node.
Theme Designer