Lightweight, accessible drag and drop toolkit for React, Vue, Svelte, Solid and plain JavaScript
open sourceMITfree
dnd kit is an MIT-licensed toolkit for building drag and drop interfaces on the web. A framework-agnostic core and DOM layer sit under thin adapters for React, Vue, Svelte and SolidJS, or you use it from plain JavaScript. It handles lists, grids, multiple containers, nested contexts, variable-sized and virtualized items, with pointer, mouse, touch and keyboard sensors, custom collision detection and animations, and a sortable layer. Accessibility is built in: keyboard support, ARIA attributes and screen reader announcements. SortableJS does a similar job.
Problems it solves
- add accessible drag and drop reordering to a React list
- drag items between columns on a kanban board
- a drag and drop library that works with touch and keyboard
Features
- adapters for React, Vue, Svelte and SolidJS
- pointer, mouse, touch and keyboard sensors
- sortable lists, grids and multiple containers
- virtualized and nested lists
- keyboard support and screen reader announcements
Alternatives
The same job
These do what dnd kit does.
- Pragmatic drag and drop Atlassian's low-level, framework-agnostic drag and drop toolchain built on the browser's native drag and drop
- Sortable (SortableJS) Reorderable drag-and-drop lists for browsers and touch devices
- interact.js JavaScript drag and drop, resizing and multi-touch gestures with inertia and snapping
- React DnD Drag and drop utilities for React, built on hooks and pluggable backends
