How they help
Trees show relationships between items and enable users to manage and interact with nested data effectively. This structured approach reduces cognitive load and simplifies access to complex information.
Example of a tree
Anatomy
- Closed tree item: item that has children items, but are hidden
- Closed item icon: chevron that shows there’s children items hidden
- Tree item title
- Badge❖: option visual
- Focus ring: visual focus state
- Open tree item: item that has children item(s) and are visible
- Leaf tree item: item that has no children item(s)
Visual reference for anatomy
Variants
There are a few variants of the component: checkbox, icon before or after and badge.
Visual options of variants