The modern toolkit for building drag and drop interfaces
The modern toolkit for building drag and drop interfaces
A modern, lightweight, performant, accessible and extensible drag and drop toolkit for the web
@dnd-kit/abstract), a DOM implementation (@dnd-kit/dom), and thin adapters for your framework of choice.@dnd-kit/dom/sortable, a thin layer built on top of the core.Choose your preferred framework to get started:
|
Build drag and drop interfaces using plain JavaScript
|
Build drag and drop interfaces using React components and hooks
|
|
Build drag and drop interfaces using Vue composables and components
|
Build drag and drop interfaces using Svelte primitives and components
|
|
Build drag and drop interfaces using SolidJS hooks and components
|
Visit dndkit.com for full documentation, API reference, guides, and interactive examples.
| Package | Version | Description |
|---|---|---|
@dnd-kit/abstract |
Abstract core | |
@dnd-kit/collision |
Collision detection | |
@dnd-kit/dom |
Framework-agnostic DOM layer | |
@dnd-kit/geometry |
Geometry utilities | |
@dnd-kit/helpers |
Helper functions | |
@dnd-kit/react |
React adapter | |
@dnd-kit/solid |
SolidJS adapter | |
@dnd-kit/state |
Reactive state management | |
@dnd-kit/svelte |
Svelte adapter | |
@dnd-kit/vue |
Vue adapter |
This is a monorepo managed with Turborepo and bun.
# Install dependencies
bun install
# Build all packages
bun run build
# Run dev mode
bun run devFeedback styles are added and removed on every drag, forcing a full-page style recalculation
[Svelte] DragOverlay disappears one frame before the hidden source is restored
Active sortable item becomes invisible during drag in Chrome
Keyboard sensor locks out mouse
isSortable type guards use "any" in return type
useSortable: dragged table row/column is offset when border-spacing is set
Placement position of item when moving from one column to another in multiple lists
[DragOverlay] Dont do drop animation if its not moved?
[@dnd-kit/core, Safari] Dragging elements in scrollable containers don't scroll all the way up.
Variable height elements produce jittering in sortable lists