Child visibility
Groupfunction
Renders a child group and hides it while its parent id is not expanded.
GroupOptionsinterface
Inputs accepted by Tree.Group in addition to the shared DOM host options.
Expansion
collapsefunction
Removes an id from expandedIds.
expandfunction
Adds an id once to expandedIds.
isExpandedfunction
Tests membership in expandedIds without touching the DOM.
Hierarchy state
InitialStateinterface
Initial Tree values. activeId defaults null and expandedIds defaults empty.
Stateinterface
The focused node and expanded parent identities. Expansion controls visible traversal; file selection or opening is a separate application action.
StateSchemavariable
Effect Schema used by makeState to encode, decode, and hydrate Tree state.
makeStatefunction
Creates hydrated Tree state. activeId defaults null and expandedIds defaults empty.
Node focus
activatefunction
Sets the active tree item id without changing expansion.
Node registration
ItemValueinterface
Tree collection value recording an item’s parent relationship.
makeCollectionvariable
Creates a scoped Collection for Tree items.
Tree nodes
Itemfunction
Renders and optionally registers a treeitem with level, expanded, disabled, and roving-focus state.
ItemOptionsinterface
Inputs accepted by Tree.Item in addition to the shared DOM host options.
Tree surface
Rootfunction
Renders the tree root and applies hierarchy-aware keyboard navigation to registered items.
RootOptionsinterface
Inputs accepted by Tree.Root in addition to the shared DOM host options.