File Tree Components for React & Next.js
Visualize directory structures using 14 React file tree components, crafted with Tailwind CSS for clear, interactive file navigation.

File Tree
by Justin Levine
Tree
by Sean Hello
Tree View
by Mark Yo
File Tree
by halaska-studio
HeroUI Table
by Hero Ui
Animated File Tree
by Arunachalam
File Tree
by Jatin Yadav
Tree View
by Özer
Tree
by Origin UI
Checkbox
by Clevision
File Tree
by Edwin Vakayil
Simple Growth Tree
by Kain Xu
File Tree
by Dillion Verma
Tree
by Hayden Bleasel
File Tree
by Saurabh
File Tree View
by Cnippet
Tree Node Tooltip
by Ruixen
Animated Tree View
by Syed
Tree View
by Abraham
Tree Code Viewer
by ui layout
Tree View
by Preet Suthar
FileTree
by Ruixen
Filesystem Item
by Build UI
File Viewer
by Bankk roll
Tree
by Sean Hello
Tree
by Origin UI
File Tree
by halaska-studio
Tree
by Hayden Bleasel
Tree View
by romanhaendler
Expanding Sub-Rows Table
by felipemenezes098
File System (Finder)
by extend-hq
Tree View
by uiable
Branching Tree Nav
by Arunachalam
Generative Tree
by Meng To
Nested Tree Checkbox
by felipemenezes098
Multi-level Collapsible Menu
by Cnippet
Collapsible
by Clevision
Tree View
by Mohamed Uvaish
Tree
by James Shopland
Tree
by Preet Suthar
File Tree
by Aadi
Fractal Bloom Tree
by Dhileep Kumar GM
Hierarchy Tree Chart
by Pace UI
JSON Viewer
by Mohammad Shehadeh
Tree Box Drawing
by nikolas-sapa
Json Viewer
by amankaushik481
AI Conversation Tree
by Cameron Kelliher
GlowTree
by Ruixen
Tree
by Sean Hello
Tree
by Origin UI
File Tree
by halaska-studio
Tree
by Hayden Bleasel
FileTree
by Ruixen
Schema Viewer
by Cameron Kelliher
Reddit Nested Thread Reply
by Vaibhav Kumar Singh
JSON Viewer
by Cameron Kelliher
Animated File Tree Primitives
by unlumen
Tree Folder structure
by Shailendra Kumar
Folder Tree
by scrollxui
Tree View
by Abraham
Scroll Area File Explorer
by ShadcnSpace
Tree
by Sean Hello
Tree
by Origin UI
Tree
by Origin UI
Tree
by Origin UI
Tree
by Origin UI
Tree
by Origin UI
Tree
by Origin UI
Tree
by Origin UI
Tree
by Origin UI
Tree
by Origin UI
Tree
by Hayden Bleasel
File Tree
by halaska-studio
Tree
by Hayden Bleasel
About file tree components
This collection has 36 file tree components for React, the nested view for showing folders and files. You'll find expandable and collapsible directory trees, variants with file-type icons, indent guides, and selection or highlight states. Some mimic an IDE-style file explorer; others are lighter for a docs sidebar. If you're after a react file tree to render a project structure or a code-repository layout, these handle the nesting and toggle behavior for you.
Pick a tree with icons and indent guides when the hierarchy is deep, and a plain one for shallow lists. Feed it your directory data as a nested structure and let the component render the branches. Copy the TSX, install via the shadcn CLI with the registry URL, or pull it through the Magic MCP in your editor. They use Tailwind and work in Next.js like any React component.
