packages/dom/README.md
The framework-agnostic DOM implementation layer for @dnd-kit, built on top of @dnd-kit/abstract. This package provides the core drag and drop primitives that work directly with the DOM, and serves as the foundation for all framework adapters (@dnd-kit/react, @dnd-kit/vue, @dnd-kit/svelte, @dnd-kit/solid).
npm install @dnd-kit/dom
Most consumers will use one of the framework-specific adapters rather than this package directly. However, @dnd-kit/dom can be used standalone for framework-agnostic or vanilla JavaScript projects.
| Entry point | Description |
|---|---|
@dnd-kit/dom | Core API — DragDropManager, Draggable, Droppable, sensors, plugins |
@dnd-kit/dom/sortable | Sortable primitives — Sortable, sorting utilities |
@dnd-kit/dom/modifiers | Built-in modifiers for constraining drag movement |
@dnd-kit/dom/utilities | DOM utility functions |
Visit dndkit.com for full documentation, guides, and interactive examples.