Tree (WIP)
tree functional composition and current verification limits.
Tree owns single selection and expansion of a complete authored hierarchy. nodeKey is unique, parentKey identifies its parent, and invalid cycles or missing parents fail closed. Arrow keys, Home/End and first-letter navigation move focus; Left/Right collapse, expand or navigate to parent/child. Controlled value and expandedKeys are request-only.
This is a WIP source checkpoint. Full Adapter/Compiler, native GPUI, package consumer, accessibility and commit-bound visual acceptance remain pending.
Tree is workspace source. There is no public proto-ui add target. Passing value or expandedKeys selects controlled mode for that fact.
| Prop | Type | Default |
|---|---|---|
defaultValue | string | '' |
defaultExpandedKeys | readonly string[] | [] |
disabled | boolean | false |
readOnly | boolean | false |
a11yLabel | string | Tree |
These props belong to Root. Item defaults nodeKey, parentKey, and textValue to '', and disabled to false. Group accepts nodeKey. Toggle adds the Button props.