loading code fetching the highlighted snippet
Inspect how the viewer exposes tree roles, expansion state, labelled controls, and keyboard-ready focus behavior.
role="tree" / role="group" nodes with aria-expanded and aria-controls wiring each disclosure to its
children.Enter / Space toggle a node — the
same keyboard model ships in the packaged component.tabindex keeps a single tab stop for the whole tree so focus never
gets trapped inside deep nesting.