/react-treeview-light

React Tree View Light Component

Primary LanguageJavaScriptMIT LicenseMIT

React-treeview npm version

Easy and light treeview component made with React

install

Npm:

npm i react-treeview-light -S

API

<TreeView />

  • data: content to show inside the treeview. (Required)
  • collapsed: whether the tree is collapsed or not. (Optional)

Data Example

{
    id: 0,
    value: 'Parent',
    childNodes: [{
        id: 1,
        value: 'A'
    },
    {
        value: 'B',
        id: 2,
        childNodes: [{
            id: 3,
            value: 'Ba'
        },
        {
            id: 4,
            value: 'Bb'
        }]
    }]
}

License

MIT.