TreeView
Navigation

TreeView.

Expandable project and folder navigation with accessible roving keyboard focus.

Real interactive component
Live demo

Selected: pura. Use arrow keys to explore.

The preview uses the actual shared component, including your current theme, rounding, border and motion preferences.

Props & API reference

Parameters available in the shared component, including value types, requirements and accepted options.

6 props
ParameterTypeRequiredDefaultPossible valuesDescription
nodesTreeNode[]Yes——Nested tree entries with id, label, icon, disabled and children.
valuestringNo——Controlled selected entry ID.
onValueChange(id: string) => voidNo——Triggered on selection.
defaultExpandedstring[]No[]—Initially expanded node IDs.
labelstringNoTree navigation—Accessible tree name.
classNamestringNo——Additional styling.