react-sortable-tree-theme-full-node-drag

Full node drag theme for react-sortable-tree

Showing:

Popularity

Downloads/wk

6.1K

GitHub Stars

28

Maintenance

Last Commit

3yrs ago

Contributors

1

Package

Dependencies

6

Size (min+gzip)

7.1KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

React Sortable Tree Full Node Drag Theme

theme appearance

Features

  • No drag handles. You can click anywhere on a node to drag it.

Usage

npm install --save react-sortable-tree-theme-full-node-drag
import React, { Component } from 'react';
import SortableTree from 'react-sortable-tree';
import FileExplorerTheme from 'react-sortable-tree-theme-full-node-drag';

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

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100