- Docs
- Components
- 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
| Keys | What happens |
|---|---|
| TabTab | To 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. |
| HomeHomeEndEnd | The first or last row. |
| EnterSpace | Selects the node, or ticks it with checkable. |
| A–Z | The 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