Description
react-arborist is a tree view component library for React. It gives you the building blocks for a sidebar like the one in VS Code, a Finder or Explorer style file tree, or a layers panel like the ones in Figma and Sketch. It includes drag and drop sorting, opening and closing folders, inline renaming, virtualised rendering for large trees, keyboard navigation, ARIA attributes and tree filtering that keeps the parents of matching nodes visible. You can use it uncontrolled, with initialData, where create, move, rename and delete are handled internally, or controlled, with a data prop, where you handle the changes yourself. Custom styling and a custom Node component let you change the look and row sizing. Selection can be synchronised, and callbacks such as onScroll, onActivate and onSelect are available. The library needs react-dnd and react-dnd-html5-backend as peer dependencies, and the adjustMoveIndex helper is provided for managing move indexes yourself. Demos and examples are on the project's GitHub page.…
Highlights
- Drag and drop sorting in a tree
- Inline renaming and keyboard navigation
- Virtualised rendering for large trees
- Tree filtering that keeps parent nodes visible
- Controlled or uncontrolled trees
Ratings & Reviews
No ratings yet
Be the first to rate react-arborist.
People also visit

react-complex-tree
Unopinionated Accessible Tree Component with Multi-Select and Drag-And-Drop
react-accessible-treeview
A react component that implements the treeview pattern as described
@nosferatu500/react-sortable-tree
Accessible drag-and-drop sortable tree for React 19
react-arborist FAQ
What is react-arborist?
A tree view component library for React, for building a sidebar or file tree.
How do I install it?
Install react-arborist together with its peer dependencies, react-dnd and react-dnd-html5-backend.
Is the tree controlled or uncontrolled?
Both. Use initialData for an uncontrolled tree that handles create, move, rename and delete itself, or the data prop for a controlled tree.
Does it support keyboard navigation?
Yes. It includes keyboard navigation and ARIA attributes.
How does filtering work?
A non-empty search term shows matching nodes and their parents, and folders open while filtering. You can supply your own match function.
Is it open source?
The repository is public on GitHub, with demos and examples on its page.
What are the best react-arborist alternatives?
Popular alternatives to react-arborist include react-vtree, react-complex-tree and react-virtualized-tree. See all react-arborist alternatives
















