GitHub

Tree

Hierarchical tree view with expand/collapse, checkboxes, drag-and-drop, icons, and connector lines.

Basic Tree

Preview
  • src 4
    • components
      • Button.tsx
      • Card.tsx

With Checkboxes

Preview
  • Select all
    • Option A
    • Option B
ClassDescription
.treeBase container
.tree-listList element
.tree-list-nestedIndented child list
.tree-nodeNode container
.tree-itemClickable item row
.tree-item-selectedSelected state
.tree-toggleExpand/collapse arrow
.tree-toggle-expandedRotated (expanded)
.tree-toggle-emptyHidden (leaf node)
.tree-checkboxSelection checkbox
.tree-checkbox-checkedChecked state
.tree-checkbox-indeterminatePartial selection
.tree-iconNode icon
.tree-icon-folderFolder icon (warning color)
.tree-icon-fileFile icon (muted)
.tree-labelNode text (truncated)
.tree-badgeCount badge
.tree-actionsHover actions
.tree-actionAction button
.tree-smSmall size
.tree-lgLarge size
.tree-linesConnector lines variant
.tree-borderedBordered variant
.tree.glassGlass morphism variant