This package has been deprecated

Author message:

This package was renamed to 'rescript-dnd'. Please, update your dependencies.

re-dnd

4.0.0-beta.1 • Public • Published

re-dnd

npm version build status license

Drag & drop for @rescript/react.

Features

  • Vertical lists
  • Horizontal lists
  • Multiple drop targets
  • Mouse & Touch interactions
  • Conditional drag & drop
  • Custom drag handles
  • Scrollable containers
  • Auto-scroll when dragging at container's edge

Installation

# yarn
yarn add re-dnd
# or npm
npm install --save re-dnd

Then add it to bsconfig.json:

"bs-dependencies": [
  "re-dnd"
]

Docs

Examples

State

🚧 The library is not feature-complete and some features/apis might be missing.
🎙 Let us know if you miss anything via creating an issue.
🌎 We're using it in production BTW.

Features we'd like to add at some point

  • [ ] Keyboard interactions
  • [ ] Ignore form elements (opt-out)
  • [ ] Drop-zones
  • [ ] Multi-select

Thanks

License

MIT.

Package Sidebar

Install

npm i re-dnd

Weekly Downloads

18

Version

4.0.0-beta.1

License

MIT

Unpacked Size

310 kB

Total Files

38

Last publish

Collaborators

  • alex.fedoseev