react-vir-tree
Version:
react-virtualized-tree React component
60 lines (37 loc) • 2.29 kB
Markdown
//img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
[ ]: https://img.shields.io/travis/highqualitycode/react-vir-tree/master.png?style=flat-square
[ ]: https://travis-ci.org/highqualitycode/react-vir-tree
[ ]: https://img.shields.io/npm/v/react-vir-tree.png?style=flat-square
[ ]: https://www.npmjs.com/package/react-vir-tree
[ ]: https://img.shields.io/coveralls/highqualitycode/react-vir-tree/master.png?style=flat-square
[ ]: https://coveralls.io/github/highqualitycode/react-vir-tree
<div align="center" style="margin-bottom: 30px;">
<img src="https://user-images.githubusercontent.com/1521183/37708046-14cf3fb4-2cfd-11e8-9fad-8c0d557397cd.gif" width="650"/>
</div>
**react-vir-tree** is a tree view react library built on top of [react-virtualized](https://bvaughn.github.io/react-virtualized/#/components/List)
Its main goal is to display tree like data in a beautiful and fast way. Being a reactive library it uses children functions to achieve maximum extensibility. The core idea behind it is that anyone using it is enable to create a tree as they intent just by rendering their own components or components exported by the tree.
Demo and docs can be found [in here](https://highqualitycode.github.io/react-vir-tree/).
You can install via npm or yarn.
`npm i react-vir-tree --save`
or
`yarn add react-vir-tree`
To get the basic styles for free you need to import react-virtualized styles only once.
```
import 'react-virtualized/styles.css'
import 'react-vir-tree/lib/main.css'
```
If you want to use the icons in the default renderers do the same for material icons.
`import 'material-icons/css/material-icons.css'`
To use the standalone tree
`import Tree from 'react-vir-tree'`
To use the FilteringContainer
`import { FilteringContainer } from 'react-vir-tree'`
Most react-vir-tree Dependencies are managed internally, the only required peerDependencies are **react**, **react-dom** and **react-virtualized**.
[![Travis][build-badge]][build]
[![npm package][npm-badge]][npm]
[![Coveralls][coveralls-badge]][coveralls]
[![semantic-release](https: