{"schemaVersion":"1.0","record":{"label":"dnd kit","description":"Extensible drag-and-drop toolkit with a framework-agnostic core and framework adapters.","aliases":["dnd-kit","@dnd-kit/react"],"kind":"software","website":"https://dndkit.com/","overview":"dnd kit is an open-source toolkit for building drag-and-drop interfaces. Its current architecture separates a framework-independent core, a DOM implementation and adapters for UI frameworks. It supports draggable elements, drop targets and sortable collections while leaving the application's content, styling and persisted data model to its integration.","license":"MIT","lifecycle":"active","example":false,"features":[{"name":"Framework adapters","status":"supported","detail":"Current toolkit includes React, Vue, Svelte, Solid and vanilla layers.","useCase":"Building sortable lists and custom drag-and-drop interactions in web applications","platforms":["Web","TypeScript","React","Vue","Svelte","Solid"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://github.com/clauderic/dnd-kit/blob/main/README.md","locator":"Architecture, framework adapters and accessibility features","retrievedAt":"2026-10-07T23:36:19Z","kind":"vendor"}]},{"name":"Keyboard dragging","status":"supported","detail":"Built-in sensor supports focused draggable elements or handles and configurable key bindings.","useCase":"Building sortable lists and custom drag-and-drop interactions in web applications","platforms":["Web","TypeScript","React","Vue","Svelte","Solid"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://dndkit.com/extend/sensors/keyboard-sensor/","locator":"Default activation, key values and focus","retrievedAt":"2026-10-07T23:36:27Z","kind":"vendor"}]},{"name":"Persistent sorted data","status":"limited","detail":"Optimistic DOM ordering requires application state reconciliation; it is not a backend write.","useCase":"Building sortable lists and custom drag-and-drop interactions in web applications","platforms":["Web","TypeScript","React","Vue","Svelte","Solid"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://dndkit.com/react/guides/sortable-state-management/","locator":"Optimistic DOM ordering, indices and move helper","retrievedAt":"2026-10-07T23:36:27Z","kind":"vendor"}]},{"name":"Legacy React snippets","status":"limited","detail":"Current provider, events and packages differ from @dnd-kit/core-era APIs.","useCase":"Building sortable lists and custom drag-and-drop interactions in web applications","platforms":["Web","TypeScript","React","Vue","Svelte","Solid"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://dndkit.com/react/guides/migration/","locator":"Legacy package and event changes","retrievedAt":"2026-10-07T23:36:19Z","kind":"vendor"}]}],"alternatives":[],"slug":"dnd-kit","draftAlternatives":[{"targetSlug":"sortablejs","status":"limited","detail":"Can replace sortable-list interactions where framework adapters and customizable sensors suit the application; requires new state and event integration.","useCase":"Building sortable lists and custom drag-and-drop interactions in web applications","platforms":["Web","TypeScript","React","Vue","Svelte","Solid"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://github.com/clauderic/dnd-kit/blob/main/README.md","locator":"Architecture, framework adapters and accessibility features","retrievedAt":"2026-10-07T23:36:19Z","kind":"vendor"},{"url":"https://sortablejs.github.io/Sortable/","locator":"Reordering within and across lists","retrievedAt":"2026-10-07T23:35:56Z","kind":"vendor"}]}],"evidence":[{"url":"https://github.com/clauderic/dnd-kit/blob/main/README.md","locator":"Architecture, framework adapters and accessibility features","retrievedAt":"2026-10-07T23:36:19Z","kind":"vendor"},{"url":"https://dndkit.com/react/quickstart/","locator":"Current packages, refs and provider events","retrievedAt":"2026-10-07T23:36:13Z","kind":"vendor"},{"url":"https://dndkit.com/react/guides/migration/","locator":"Legacy package and event changes","retrievedAt":"2026-10-07T23:36:19Z","kind":"vendor"},{"url":"https://dndkit.com/react/guides/sortable-state-management/","locator":"Optimistic DOM ordering, indices and move helper","retrievedAt":"2026-10-07T23:36:27Z","kind":"vendor"},{"url":"https://dndkit.com/extend/sensors/keyboard-sensor/","locator":"Default activation, key values and focus","retrievedAt":"2026-10-07T23:36:27Z","kind":"vendor"},{"url":"https://github.com/clauderic/dnd-kit/blob/main/LICENSE","locator":"MIT terms","retrievedAt":"2026-10-07T23:36:27Z","kind":"vendor"},{"url":"https://sortablejs.github.io/Sortable/","locator":"Reordering within and across lists","retrievedAt":"2026-10-07T23:35:56Z","kind":"vendor"}],"document":{"version":1,"references":[{"url":"https://github.com/clauderic/dnd-kit/blob/main/README.md","locator":"Architecture, framework adapters and accessibility features","retrievedAt":"2026-10-07T23:36:19Z","id":"repo","title":"dnd kit repository","kind":"vendor"},{"url":"https://dndkit.com/react/quickstart/","locator":"Current packages, refs and provider events","retrievedAt":"2026-10-07T23:36:13Z","id":"quick","title":"React quickstart","kind":"vendor"},{"url":"https://dndkit.com/react/guides/migration/","locator":"Legacy package and event changes","retrievedAt":"2026-10-07T23:36:19Z","id":"migration","title":"React migration guide","kind":"vendor"},{"url":"https://dndkit.com/react/guides/sortable-state-management/","locator":"Optimistic DOM ordering, indices and move helper","retrievedAt":"2026-10-07T23:36:27Z","id":"state","title":"Managing sortable state","kind":"vendor"},{"url":"https://dndkit.com/extend/sensors/keyboard-sensor/","locator":"Default activation, key values and focus","retrievedAt":"2026-10-07T23:36:27Z","id":"keyboard","title":"Keyboard sensor","kind":"vendor"},{"url":"https://github.com/clauderic/dnd-kit/blob/main/LICENSE","locator":"MIT terms","retrievedAt":"2026-10-07T23:36:27Z","id":"license","title":"dnd kit MIT license","kind":"vendor"},{"url":"https://sortablejs.github.io/Sortable/","locator":"Reordering within and across lists","retrievedAt":"2026-10-07T23:35:56Z","id":"sortable","title":"SortableJS overview and examples","kind":"vendor"}],"overviewCitations":["repo"],"licenseCitations":["license"],"sections":[{"id":"integration","heading":"Integration building blocks","paragraphs":[{"id":"integration-detail","content":[{"text":"React integration now uses @dnd-kit/react. Draggable and droppable hooks associate unique IDs with DOM references, and DragDropProvider coordinates operations and exposes events. The helpers package supplies array-moving utilities for sorting. This allows an application to compose interactions around its own elements rather than adopting a finished task-board product. Actual data movement is handled in application event logic."}],"citations":["quick"]}]},{"id":"migration","heading":"Do not mix API generations","paragraphs":[{"id":"migration-detail","content":[{"text":"The current migration guide replaces the legacy DndContext with DragDropProvider. Event data changes from active and over to operation.source and operation.target; cancellation is handled through event.canceled inside onDragEnd. Current sortable imports and sensor configuration also differ. A project receiving generated snippets should first establish which package family it uses. Merely changing an import without reconciling event handling and sortable state is not the documented migration."}],"citations":["migration"]}]},{"id":"state","heading":"Optimistic sorting and saved order","paragraphs":[{"id":"state-detail","content":[{"text":"The default OptimisticSortingPlugin reorders DOM elements during dragging. Under that behavior, source and target can refer to the same element, so comparing their IDs is not a reliable way to discover the movement. The documentation instead uses initialIndex/index and initialGroup/group after narrowing with isSortable, or the move helper. The application must reconcile its state with the completed operation and handle cancellation. A visually reordered list alone does not establish that the underlying data or a remote database changed."}],"citations":["state"]}]},{"id":"keyboard","heading":"Keyboard and accessible interactions","paragraphs":[{"id":"keyboard-detail","content":[{"text":"A keyboard sensor is enabled by default. It activates from the focused draggable element or handle and normally avoids starting a drag from focused descendant inputs or buttons. Bindings use KeyboardEvent.key values, which is important for keyboard layouts and older configurations based on physical key codes. The repository also documents ARIA defaults, screen-reader instructions and live regions. These are integration aids; the final interface still needs testing with its actual handles, controls and announcements."}],"citations":["keyboard","repo"]}]},{"id":"license","heading":"License and deployment scope","paragraphs":[{"id":"license-detail","content":[{"text":"The repository is MIT-licensed with its notice requirements. It can be incorporated into commercial web applications without a toolkit subscription implied by that license. Application hosting, persistence and operational behavior remain separate from the permission to reuse the library."}],"citations":["license"]}]},{"id":"comparison","heading":"Substitution considerations","paragraphs":[{"id":"comparison-detail","content":[{"text":"dnd kit can substitute for "},{"text":"SortableJS","targetSlug":"sortablejs"},{"text":" in list and grid reordering workflows when its framework adapters and extensibility fit the project. SortableJS offers a direct list-oriented integration, while dnd kit exposes a broader manager, sensor and interaction model. This is a choice of implementation architecture rather than drop-in API compatibility. The comparison is documentation-based; no installation or interaction benchmark was performed."}],"citations":["repo","sortable"]}]}]},"id":"Q1169","revision":1217,"updatedAt":"2026-10-13T23:27:28Z","sourceUrl":"https://substitutefor.net/entities/Q1169?revision=1217"}}