All components
Navigation
TreeView
beta
Since 1.1
Hierarchical, expandable tree with keyboard navigation and role="tree" semantics.
Navigation
primitive
Display
Documented
import { TreeView } from '@ivim/native/components';
When to use
Use when
Navigating nested structures (categories, folders, org units).
Don't use when
A flat set of options — use a list or Menu.
Example
Preview
Code
Accessibility
Roles and screen-reader behavior this component provides, plus keyboard interactions.
•
Rows are role="treeitem" with aria-expanded; parents toggle on press/Enter.
Up / Down
Move between visible rows.
Right / Left
Expand / collapse the focused node.
State coverage
Interaction and visual states this component supports.
base
semantic color
density
Token references
Semantic design tokens this component page exercises. Tap one to edit it live.
Related components
Components that solve adjacent problems or compose with this one.