JSPM

  • Created
  • Published
  • Downloads 110289
  • Score
    100M100P100Q157460F
  • License MIT

React component for checkbox trees.

Package Exports

  • react-checkbox-tree
  • react-checkbox-tree/lib/react-checkbox-tree.css
  • react-checkbox-tree/src/less/react-checkbox-tree.less

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-checkbox-tree) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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} />;
}