Data Display /
stableTree View
Pohon hierarki expandable untuk data bertingkat (file tree, kategori, org). Data-driven, dengan selection & kontrol expand opsional.
Examples
Selectable file tree
- src
- components
- Button.tsx
- Input.tsx
- index.ts
- public
- README.md
Selected: input
Read-only (tanpa selection)
- src
- components
- index.ts
- public
- README.md
Props
Tokens Used
--color-primaryHighlight row terpilih + ikon aktif
--color-secondaryHover row
--text-main / --text-mutedLabel vs ikon/chevron
--ring-focusFocus ring row
Accessibility
- Struktur role='tree' / 'group' / 'treeitem' dengan aria-expanded & aria-selected.
- Keyboard: Enter/Space toggle+select, ArrowRight expand, ArrowLeft collapse.
- Tiap baris fokusabel (tabIndex=0); gunakan label node yang jelas & unik.