Data
Tree
Browses hierarchical resources with keyboard navigation and optional single-item selection.
idle
Usage
Examples
Selected resource
Recommendations
| Guidance | Practice |
|---|---|
| Do | Use resource names and stable identifiers. Keep expansion distinct from selection and activation. |
Usage boundaries
| Guidance | Boundary |
|---|---|
| Scope | Use Side Navigation for grouped route links. The application owns resource loading and activation outcomes. |
API reference
Public props from @mizen-labs/ui. Use exported prop types for the complete TypeScript contract.
| Prop | Type | Default | Description |
|---|---|---|---|
| | Required | Unique IDs, text labels, optional disabled state and children. |
| | - | Controlled expanded branches. |
| | [] | Initial uncontrolled expanded branches. |
| | - | Called after a branch expansion change. |
| | - | Controls the selected ID; focus and selection remain separate. |
| | - | Sets the initial selection; null opts in with no selected item. |
| | - | Receives user selection changes when selection is enabled. |
| | - | Caller-owned resource activation. |