brimdata/react-arborist: The complete tree view component for React
github.com·2d·
Discuss: DEV
🗺️Treemaps
Preview
Report Post

React Arborist

See the Demos

The tree view is ubiquitous in software applications. This library provides the React ecosystem with a complete solution to build the equivalent of a VSCode sidebar, Mac Finder, Windows Explorer, or Sketch/Figma layers panel.

Here is a Gmail sidebar clone built with react-arborist.

Features

  • Drag and drop sorting
  • Open/close folders
  • Inline renaming
  • Virtualized rendering
  • Custom styling
  • Keyboard navigation
  • Aria attributes
  • Tree filtering
  • Selection synchronization
  • Callbacks (onScroll, onActivate, onSelect)
  • Controlled or uncontrolled trees

Installation

yarn add react-arborist

npm install react-arborist

Examples

Assume our data is this:

const data = [
{ id:...

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help