TreeView
Hierarchical tree structure for nested data with expand/collapse, selection, keyboard navigation, drag-and-drop reorder, and lazy loading hooks.
-
Archive
Keyboard interactions
| Key | Action |
|---|---|
| ↑ / ↓ | Move focus between visible nodes |
| → | Expand node or move to first child |
| ← | Collapse node or move to parent |
| Enter | Toggle expand/collapse and select node |
| Space | Select focused node |
| Home / End | Jump to first/last visible node |
Accessibility
- Uses ARIA tree pattern roles (
tree,treeitem,group). - Maintains roving focus (
tabindex="0"on active row,-1otherwise). - Reflects selection via
aria-selectedand expansion viaaria-expanded.