react-reorderable

0.4.3 • Public • Published

React Sortable

Sortable component for React. Demo here.

Thanks to @james-ecargo for implementing the React 16 support.

Demo

React.render(
  <ReactReorderable>
    <div>1</div>
    <div>2</div>
    <div>3</div>
    <div>4</div>
    <div>5</div>
  </ReactReorderable>,
  document.getElementById('container')
);

API

Properties

  • handle - a selector, which provides the handle element
  • mode - grid or list, list will work in the general case but grid is eventually smarter for grid layout

Events

  • onDragStart
  • onDrag
  • onDrop
  • onChange

License

MIT

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.4.31latest

Version History

VersionDownloads (Last 7 Days)Published
0.4.31
0.4.21
0.4.11
0.4.02
0.3.11
0.3.01
0.2.31
0.2.21
0.2.11
0.2.01
0.1.101
0.1.91
0.1.81
0.1.71
0.1.61
0.1.51
0.1.41
0.1.31
0.1.21
0.1.11
0.1.01
0.0.31
0.0.11

Package Sidebar

Install

npm i react-reorderable

Weekly Downloads

24

Version

0.4.3

License

MIT

Unpacked Size

35.4 kB

Total Files

10

Last publish

Collaborators

  • mgechev