Skip to content

surya-purohit/react-checkbox-tree

Repository files navigation

react-checkbox-tree

npm Dependency Status devDependency Status GitHub license

Checkbox treeview for React.

Demo

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 nodes={nodes} />;
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published