Skip to content

Tree view

The tree component is used to display hierarchical data and supports a wide range of configurable options and features.

Usage

Tree view

When to use

  • Data in hierarchical form can be represented in a tree structure. Examples include directory, organization and location structures.
  • Apply a tree view to large data sets that can be categorized into two or more levels.

Best practices

  • A tree view should not have more than four sub-levels (not including the root node).
  • The most commonly accessed objects should appear in the first two levels.
  • Use a natural hierarchical structure that is familiar to most users. Balance discoverability with a predictable user model that minimizes confusion.
  • A tree view should be supported by a breadcrumb within the content area.
  • Use nodes with icons only if you have meaningful icons available.
  • Don't mix nodes with icons and nodes with just a label within the same hierarchy.

Except where otherwise noted, content on this site is licensed under MIT License.