react-treeview-limeleads

    0.4.8 • Public • Published

    React-treeview npm version Bower version

    Easy, light, flexible treeview made with React.

    Demos from the demos folder.

    install

    Npm:

    npm install react-treeview

    Bower:

    bower install react-treeview

    The CSS file:

    <link rel="stylesheet" type="text/css" href="path/to/react-treeview.css">

    API

    <TreeView />

    The component accepts three props.

    • collapsed: whether the node is collapsed or not.
    • defaultCollapsed: the uncontrolled equivalent to collapsed.
    • nodeLabel: the component or string (or anything renderable) that's displayed beside the TreeView arrow.

    TreeViews can be naturally nested.

    The extra properties transferred onto the arrow, so all attributes and events naturally work on it.

    Styling

    The CSS is flexible, commented and made to be easily customized. Feel free to inspect the demo's classes and check the short CSS code.

    Build It Yourself/Run the Demos

    Build: npm install && npm run prerelease

    Demos: npm install && npm start && open http://localhost:3000

    License

    MIT.

    Install

    npm i react-treeview-limeleads

    DownloadsWeekly Downloads

    0

    Version

    0.4.8

    License

    MIT

    Last publish

    Collaborators

    • mholubowski