UI / UXUI ComponentsData DisplayInteractiveIntermediate
Tree View
KO: 트리 뷰·EN: Tree View·JA: ツリービュー
A recursive hierarchical list that represents nested parent-child relationships using indentation and expand/collapse toggles for exploring folders, org charts, or docs
Table of Contents
Interactive Playground
Tap or drag to interact with the demoQuick Answer
What is Tree View?
A recursive hierarchical list that represents nested parent-child relationships using indentation and expand/collapse toggles for exploring folders, org charts, or docs. It is a core concept in UI Components within UI / UX.
Core Principles
A Tree View visualizes arbitrarily nested parent-child hierarchies using progressive indentation and expand/collapse chevrons. While an accordion typically toggles a single level of content panels, a tree view handles recursive multi-level structures such as folders, layers, or taxonomies.
Practical Takeaways
- Add subtle indent guides and moderate step width: Vertical guide lines clarify ancestry at deeper levels, while keeping indentation compact (12–16px per level) prevents labels from truncating prematurely.
- Separate expand/collapse from selection: Let clicking the chevron toggle children without losing the current selection, or make the click behavior explicitly consistent across branch nodes.
- Support standard tree keyboard navigation: Use
role="tree"androle="treeitem"with Up/Down to traverse visible nodes, Right to expand or step into children, and Left to collapse or jump to the parent. Lazy-load large branches on expand.
Notable Examples
- IDE file explorers: Nested source folders with file-type icons, Git status markers, and drag-and-drop reparenting.
- Workspace wikis (Notion, Confluence): Collapsible nested page trees inside a sidebar.
- Design tool layer panels: Inspecting nested frames, auto-layout groups, and component instances.