Shadcn
shadcn.io › home › templates › shadcn tree view
Shadcn Tree View - Free React React Template
October 8, 2025 - Shadcn Tree View is a React component built with TypeScript, Tailwind CSS, and shadcn/ui, designed for creating hierarchical tree views with nested, expandable, and collapsible data lists that support custom icons, action buttons, drag-and-drop ...
GitHub
github.com › MrLightful › shadcn-tree-view
GitHub - MrLightful/shadcn-tree-view: A Shadcn UI component for hierarchical lists of data with nested levels that can be expanded and collapsed. · GitHub
npx shadcn add "https://mrlightful.com/registry/tree-view" type TreeProps = React.HTMLAttributes<HTMLDivElement> & { data: TreeDataItem[] | TreeDataItem; initialSelectedItemId?: string; onSelectChange?: (item: TreeDataItem | undefined) => void; renderItem?: (params: TreeRenderItemParams) => React.ReactNode; expandAll?: boolean; defaultNodeIcon?: React.ComponentType<{ className?: string }>; defaultLeafIcon?: React.ComponentType<{ className?: string }>; }; interface TreeDataItem { id: string; name: string; icon?: React.ComponentType<{ className?: string }>; selectedIcon?: React.ComponentType<{ c
Starred by 369 users
Forked by 23 users
Languages TypeScript 95.3% | JavaScript 4.7%
Videos
What is Shadcn Tree View?
A shadcn-ui component for displaying hierarchical data with collapsible nodes, custom icons, and drag-and-drop support.
allshadcn.com
allshadcn.com › home › tools › shadcn tree view
Shadcn Tree View | All Shadcn
Is Shadcn Tree View free?
Yes, it’s fully free under the MIT license.
allshadcn.com
allshadcn.com › home › tools › shadcn tree view
Shadcn Tree View | All Shadcn
Does it work outside shadcn-ui projects?
It’s designed for shadcn-ui, so non-shadcn-ui use requires replacing dependencies like shadcn-ui’s utilities.
allshadcn.com
allshadcn.com › home › tools › shadcn tree view
Shadcn Tree View | All Shadcn
Reddit
reddit.com › r/reactjs › i made a tree view component for shadcn-ui
r/reactjs on Reddit: I made a tree view component for shadcn-ui
February 4, 2025 -
It's open source under the MIT license, I thought I would share it if anyone needs it :)
Top answer 1 of 5
4
Nifty, I might finagle with it 🙃 I’ll let you know how that turns out if I do 😎
2 of 5
2
I haven't tried it yet, on the read me: "Context menu with file/folder specific actions" is it possible to add custom action button to the right or left of each item? Mainly my use case would be accessibility issue.
Reddit
reddit.com › r/reactjs › i made a tree view component for shadcn
r/reactjs on Reddit: I made a tree view component for ShadCN
3 weeks ago -
I was looking for a tree view component that is sleek yet supports all of the following:
- Drag and drop within a single tree
- Drag and drop across multiple trees
- Lazy loading (on expansion)
But couldn't find any, so I decided to make one myself!
https://github.com/ggoggam/shadcn-treeview
DEMO: https://ggoggam.github.io/shadcn-treeview/
GitHub
github.com › shadcn-ui › ui › discussions › 2329
Tree Component? · shadcn-ui/ui · Discussion #2329
I'd love it if shadcn-ui had a Tree component. I frequently find myself looking for this kind of component. ... https://dgreene1.github.io/react-accessible-treeview/ (this one looks new/accessible/maintained/clean, although it might lack some features?)
Author shadcn-ui
GitHub
github.com › neigebaie › shadcn-ui-tree-view
GitHub - neigebaie/shadcn-ui-tree-view: Shadcn-ui based tree view, with multi-selection, drag, and more! · GitHub
npx shadcn@latest add "https://github.com/neigebaie/shadcn-ui-tree-view/releases/download/v1.1.0/schema.json" interface TreeViewItem { id: string; name: string; type: string; children?: TreeViewItem[]; checked?: boolean; } interface TreeViewProps { className?: string; data: TreeViewItem[]; title?: string; showExpandAll?: boolean; showCheckboxes?: boolean; searchPlaceholder?: string; iconMap?: Record<string, React.ReactNode>; menuItems?: TreeViewMenuItem[]; onCheckChange?: (item: TreeViewItem, checked: boolean) => void; onAction?: (action: string, items: TreeViewItem[]) => void; } interface TreeViewMenuItem { id: string; label: string; icon?: React.ReactNode; action: (items: TreeViewItem[]) => void; }
Starred by 430 users
Forked by 10 users
Languages TypeScript 94.9% | JavaScript 2.6% | CSS 2.5%
Shadcn Templates
shadcntemplates.com › theme › mrlightful-shadcn-tree-view
Shadcn Tree View - Shadcn Templates
201 · Feb 6, 2025open-source · reacttailwind · WebsiteGitHub · The Tree View component by Shadcn UI is designed to facilitate navigation through hierarchical lists of data with expandable and collapsible nested levels.
Achromatic
shadcn-treeview.achromatic.dev › docs › getting-started › introduction
Introduction | Shadcn Treeview
Shadcn Treeview provides an accessible, customizable tree view component for React applications.
Tszones
shadcn-pro.tszones.com › components › tree-view
Tree View
A tree view that assembles all the functionalities of the Accordion component to create a tree view. ... npm install @radix-ui/react-accordion npm install use-resize-observer npm install @tanstack/react-virtual npx shadcn-ui@latest add scroll-area