Tree view

Core

Navigate nested folders and structured content.

pnpm dlx shadcn@latest add https://wui.alann.works/r/tree-view.json

API Reference

PropTypeDefault
nodes*TreeNode[]required
defaultExpandedIdsstring[]—
expandedIdsstring[]—
onExpandedChange(expandedIds: string[]) => void—
onSelect(node: TreeNode) => void—
Categories
data
Dependencies
lucide-reactmotion