Easy, light, flexible tree view made with React.
npm install react-treeviewEasy, light, flexible treeview made with React.
Demos from the demos folder.
Npm:
``sh`
npm install react-treeview
Bower:
`sh`
bower install react-treeview
The CSS file:
`html`
#### <TreeView />
The component accepts these props.
- collapsed: whether the node is collapsed or not.defaultCollapsed
- : the uncontrolled equivalent to collapsed.nodeLabel
- : the component or string (or anything renderable) that's displayed beside the TreeView arrow.itemClassName
- : the class name of the .tree-view_item div.treeViewClassName
- : the class name of the .tree-view div.childrenClassName
- : the class name of the .tree-view_children item div.
TreeViews can be naturally nested.
The extra properties transferred onto the arrow, so all attributes and events naturally work on it.
Build: npm install && npm run prerelease
Demos: npm install && npm start && open http://localhost:3000`
MIT.