Installing @dnd-kit/core
npm
or yarn
:
react
and react-dom
installed in your project, but if not, make sure to install them:
@dnd-kit
namespace.@dnd-kit/core
only ships with the main building blocks that the majority of users will need most of the time for building drag and drop experiences:
DndContext
as well as DraggableClone
.
To start using modifiers, install the modifiers package via yarn or npm:
@dnd-kit/core
package provides all the building blocks you would need to build a sortable interface from scratch should you choose to, but thankfully you don’t need to.
If you plan on building a sortable interface, we highly recommend you try out @dnd-kit/sortable
, which is a small layer built on top of @dnd-kit/core
and optimized for building silky smooth, flexible, and accessible sortable interfaces.
next
tag.
To try a development release before the official release, install each @dnd-kit package you intend to use with the @next
tag