Description

A tree is a hierarchical List, allowing users to expand and collapse nodes to show or hide nested items.

Types

Usage

Image

Single selection tree

Multiple selection tree

For multiple selection trees, smart selection mode will be applied. See the Interaction section of Lists for more information.

Usage & Behavior

Trees are used to navigate within hierarchical lists of objects (e.g. organizations), and then to select one or more items in order to filter content or show additional information.
They usually appear inside a Filter Pane, a Details Panel, or a Widget.

General guidelines

Structure

The tree consists of:

Leaf nodes

Container nodes:

A root node (optional)

Multiple Selection

Where multi-selection is used, each node will have a Check Box which appears on hover, allowing the user to select and deselect it.

Default State

Content

States

Regular

Hover

Active

Disabled

Focused

Focused, Hover

Focused, Active

Focused, Disabled

Interaction

  1. Single select: One item of the tree can be selected. To select an item, click anywhere on the item row.

  2. Multiple selections: Allow the selection of one or more items. For this, the tree provides checkboxes on the left side of each line item. Each item is selected independently of the others

Single Selection

Multiple Selection Mode

Single selection is activated by selecting the node label.

Selecting the node label will select the node and un-select previously selected node.

On mouse hover a node, a check box is displayed. If the user checks it he is placed in a multi selection mode. Multi selection mode can also be activated by using Ctrl/Shift while selecting the node label.

On this mode, clicking the label/check box will perform multi select. Only once the apply is pressed the action is executed (whatever the corresponding action is).

Selecting a parent node through the check box will select its descendants as well.

Unselecting some of the descendants will place the parent node in mixed state.

Best practices

Use:

Don't use:

General

Accessibility compliance

Unless otherwise specified, see our general compliance information in Fundamentals - Accessibility.

Design

Zeplin link

Screen thumbnail

Single Select

https://zpl.io/agwRA0a

Multi Select

https://zpl.io/a8L0Exa

Smart Select

https://zpl.io/VDePyea

Tree - Organization

https://zpl.io/adgoJlV

Code