Tree view
- from @pinfold
Nested data you can open, select, check, search and reorder: files and folders, categories, an org chart. The WAI-ARIA tree pattern with full keyboard support and typeahead; single or multiple selection, or tri-state checkboxes where a parent reflects its children; children loaded on demand with a loading and an error row; a search that keeps the path to every match; indent guides; drag by a handle or Alt + arrows to reorder.
Install
New to shadcn? Set up your project
If your project already has a shadcn components.json, skip initialization. Otherwise, run this once from your project root.
pnpm dlx shadcn@latest initpnpm dlx shadcn@latest add @pinfold/treeviewComponent source
No live preview has been built for this component yet.
Registry dependencies0
The CLI adds no other registry items with this one.
