Tree view
CoreNavigate nested folders and structured content.
pnpm dlx shadcn@latest add https://wui.alann.works/r/tree-view.jsonAPI Reference
| Prop | Type | Default |
|---|---|---|
nodes* | TreeNode[] | required |
defaultExpandedIds | string[] | — |
expandedIds | string[] | — |
onExpandedChange | (expandedIds: string[]) => void | — |
onSelect | (node: TreeNode) => void | — |