macOS
OutlineView
Disclosure tree (TreeView). Recursive list with chevron toggles, selection state, and Finder-style indentation.
Examples
File explorer
<OutlineView
nodes={[…]}
bind:selectedId={selected}
defaultExpanded={['src', 'components']}
/>Props
| Prop | Type | Default | Description |
|---|---|---|---|
nodes | TreeNode[] | — | Recursive `{id, label, icon?, children?}`. |
selectedId | string | — | Bindable selection. |
defaultExpanded | string[] | [] | IDs to expand on first render. |
onSelect | (id: string) => void | — | Fires on row click. |
Install
CLI
npx @a3tai/mittsu add outline-view