Skip to main content
  1. Docs
  2. Components
  3. Data display

Tree view

A hierarchy to open, close and choose from: organisation units, nested groups, permissions.

Import
@qeetrix/react/experimental
Status
ExperimentalSince 0.0.6
Renders
<ul role="tree">Server-rendered
Tested
WCAG 2.2 AAaxe on every pull request

01

Keyboard

KeysWhat happens
TabTabTo the tree: one row is in the Tab order.
↓↑The next or previous row, skipping disabled ones.
→Opens a closed node, or steps into an open one. Left in right to left.
←Closes an open node, or steps out to its parent.
HomeHomeEndEndThe first or last row.
EnterSpaceSelects the node, or ticks it with checkable.
A–ZThe next row whose label starts with the letter.

02

Behaviour

Pattern
The WAI-ARIA tree view: tree, treeitem and group, with level, size and position.
State
aria-expanded, and aria-selected or aria-checked (mixed for a parent).
Right to left
Right and Left swap, following the reading way.

03

Tested

On every change, before it ships.

  • axe, WCAG 2.2 A and AA, in Chromium on every pull request
  • Firefox and WebKit every night
  • Numbers and dates in English and Hindi, grouped for India
  • Forced colours and right to left
Next — Tree viewChangelog