package
Drag and drop sans the GUI
npm install dnd-coreGitHub-flavored package documentation.
Across all versions, last 30 days.
27,157,981 in 30 days
Runtime metadata.
gaearon
dan.abramov@gmail.com
Estimated unpacked size across 4 packages.
539.0 kB
Includes dependencies.
3 direct · 1 outdated
Drag and Drop stateful engine - no GUI.
This is a clean implementation of drag and drop primitives that does not depend on the browser. It powers React DnD internally.
To give you a better idea:
This was written to support some rather complicated scenarios that were too hard to implement in React DnD due to its current architecture:
As it turns out, these problems are much easier to solve when DOM is thrown out of the window.
Tests should give you some idea. You register drag sources and drop targets, connect a backend (you can use barebones TestBackend or implement a fancy real one yourself), and your drag sources and drop targets magically begin to interact.
