+2
日增长
17,797
stars
933
forks
37
watchers
589
prs
1,226
issues
433
releases
README
A modern, lightweight, performant, accessible and extensible drag and drop toolkit for the web Features - Framework agnostic core: The architecture is built in layers — a framework-agnostic core (@dnd-kit/abstract), a DOM implementation (@dnd-kit/dom), and thin adapters for your framework of choice. - Supports a wide range of use cases: lists, grids, multiple containers, nested contexts, variable sized items, virtualized lists, 2D games, and more. - Built-in support for multiple input methods: Pointer, mouse, touch and keyboard sensors. - Fully customizable & extensible: Customize every detail — animations, transitions, behaviours, styles. Build your own sensors, collision detection algorithms, customize key bindings and more. - Accessibility: Keyboard support, sensible default ARIA attributes, customizable screen reader instructions and live regions built-in. - Performance: Built with performance in mind to support silky smooth animations. - Sortable: Need to build a sortable interface? Check out @dnd-kit/dom/sortable, a thin layer built on top of the core. Getting started Choose your preferred framework to get started: Vanilla Build drag and drop interfaces using plain JavaScript React Build drag and drop interfaces using React components and hooks Vue Build drag and drop interfaces using Vue composables and components Svelte Build drag and drop interfaces using Svelte primitives and components Solid Build drag and drop interfaces using SolidJS hooks and components Documentation Visit dndkit.com for full documentation, API reference, guides, and interactive examples. Packages | 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 | Contributing This is a monorepo managed with Turborepo and bun. bash Install dependencies bun install Build all packages bun run build Run dev mode bun run dev License MIT
Top issues
#1564@dnd-kit/react source and target in sortable list always the same in onDragEnd handler22 comments · 2024-12-12#1747[experimental] Node.removeChild: The node to be removed is not a child of this node10 comments · 2025-06-23#1910Regression: Drag offset starts from top-left corner in Safari after version 0.3.07 comments · 2026-02-20#1780[experimental] useSortable breaks when dragging subitems from one group to another7 comments · 2025-08-15#1955Drag interaction does not work on some Android devices (works on iOS)6 comments · 2026-03-22#1654Add "use client" to DragDropProvider for React 19 compatibility in @dnd-kit/react5 comments · 2025-04-16#1992🐛 Painfully slow auto-scroll on mobile devices4 comments · 2026-04-05#1950Variable height card flickering - collision detection issue?4 comments · 2026-03-10
Discussions
#2138Can dnd-kit do parallel ordering?1 comments · 2026-09-14#2130Can I build this drag and drop UI with dndkit?1 comments · 2026-08-25#2098DragOverlay: accessing source.data inside the component throws "maximum update depth exceeded" error0 comments · 2026-07-01#2095How can I test the drag events with react testing library and vitest?2 comments · 2026-06-30#2040Dragging no longer starts from nested button elements after updating from @dnd-kit/react v0.1.21 to v0.2.01 comments · 2026-05-05#2036Hydration Mismatch with aria-describedby in Next.js App Router — Fix & Discussion2 comments · 2026-05-03#2003New version released3 comments · 2026-04-10#1989Type issues in the Vue package0 comments · 2026-04-02
Latest release
@dnd-kit/[email protected] @dnd-kit/[email protected] 2026-10-31Patch Changes
- Updated dependencies \[5fdff86]:
- @dnd-kit/[email protected]