Nutritious Pumpkin Masses

    react-sortable-tree-theme-minimal

    0.0.14 • Public • Published

    Minimal React Sortable Tree Theme

    theme appearance

    Features

    • Minimalistic Theme for React Sortable Tree

    Usage

    npm install --save react-sortable-tree-theme-minimal
    import React, { Component } from 'react';
    import SortableTree from 'react-sortable-tree';
    import FileExplorerTheme from 'react-sortable-tree-theme-minimal';
     
    export default class Tree extends Component {
      constructor(props) {
        super(props);
     
        this.state = {
          treeData: [{ title: 'src/', children: [ { title: 'index.js' } ] }],
        };
      }
     
      render() {
        return (
          <div style={{ height: 400 }}>
            <SortableTree
              treeData={this.state.treeData}
              onChange={treeData => this.setState({ treeData })}
              theme={FileExplorerTheme}
            />
          </div>
        );
      }
    }

    Install

    npm i react-sortable-tree-theme-minimal

    DownloadsWeekly Downloads

    2,383

    Version

    0.0.14

    License

    MIT

    Unpacked Size

    59.6 kB

    Total Files

    5

    Last publish

    Collaborators

    • jtchoi