react-checkbox-tree
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

react-checkbox-tree

npm Dependency Status devDependency Status GitHub license

Checkbox treeview for React.

Usage

Install the library:

npm install react-checkbox-tree --save

Then render the component:

import CheckboxTree from 'react-checkbox-tree';

...

render() {
    const nodes = [{
        value: 'node-1',
        title: 'Parent Node 1',
        children: [{
            value: 'node-1-1',
            title: 'Leaf Node 1-1',
        }, {
            value: 'node-1-2',
            title: 'Leaf Node 1-2'
        }],
    }];

    return <CheckboxTree node={nodes} />;
}

Readme

Keywords

Package Sidebar

Install

npm i react-checkbox-tree@0.0.5

Version

0.0.5

License

MIT

Last publish

Collaborators

  • jzatecky