# @dnd-kit/dom

> [![Stable release](https://img.shields.io/npm/v/@dnd-kit/dom.svg)](https://npm.im/@dnd-kit/dom)

Latest version **0.5.1** (published 2026-10-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install @dnd-kit/dom
pnpm add @dnd-kit/dom
yarn add @dnd-kit/dom
bun add @dnd-kit/dom
```

## Health

**Score 80/100 (A)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score; popular repo.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.5.1 |
| Published | 2026-10-15 |
| First published | 2024-06-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 5 |
| Unpacked size | 1.2 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 17740 |
| Maintainers | clauderic |

## Links

- npm: https://www.npmjs.com/package/@dnd-kit/dom
- Repository: https://github.com/clauderic/dnd-kit
- Homepage: https://github.com/clauderic/dnd-kit#readme
- Issues: https://github.com/clauderic/dnd-kit/issues
- npm.io page: https://npm.io/package/@dnd-kit/dom

## Dependencies (5)

- [tslib](https://npm.io/package/tslib.md) ^2.6.2
- [@dnd-kit/state](https://npm.io/package/@dnd-kit/state.md) ^0.5.1
- [@dnd-kit/abstract](https://npm.io/package/@dnd-kit/abstract.md) ^0.5.1
- [@dnd-kit/geometry](https://npm.io/package/@dnd-kit/geometry.md) ^0.5.1
- [@dnd-kit/collision](https://npm.io/package/@dnd-kit/collision.md) ^0.5.1

## Recent versions

- 0.5.1 (latest) — 2026-10-15
- 0.5.1-beta-20261015120327 (beta) — 2026-10-15
- 0.5.1-beta-20261015120225 — 2026-10-15
- 0.5.1-beta-20261015120054 — 2026-10-15
- 0.5.1-beta-20261015115837 — 2026-10-15
- 0.5.1-beta-20261015120014 — 2026-10-15
- 0.5.1-beta-20261015115628 — 2026-10-15
- 0.5.1-beta-20261015115554 — 2026-10-15
- 0.5.1-beta-20261015115205 — 2026-10-15
- 0.5.1-beta-20260912195958 — 2026-09-12
- 0.5.1-beta-20260905201412 — 2026-09-05
- 0.5.1-beta-20260905153955 — 2026-09-05
- 0.5.1-beta-20260713030121 — 2026-07-13
- 0.5.1-beta-20260706002929 — 2026-07-06
- 0.5.1-beta-20260627143054 — 2026-06-27
- … 438 more at https://npm.io/package/@dnd-kit/dom/versions

## README

# @dnd-kit/dom

[![Stable release](https://img.shields.io/npm/v/@dnd-kit/dom.svg)](https://npm.im/@dnd-kit/dom)

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`).

## Installation

```bash
npm install @dnd-kit/dom
```

## Overview

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 points

| 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                                                    |

### Key concepts

- **DragDropManager** — Orchestrates drag and drop operations, manages sensors, plugins, and collision detection.
- **Draggable** — Represents a draggable DOM element.
- **Droppable** — Represents a droppable DOM element.
- **Sensors** — Detect user input (pointer, keyboard) and translate it into drag operations.
- **Plugins** — Extend core behavior (feedback, auto-scrolling, accessibility, etc.).
- **Modifiers** — Transform drag coordinates to constrain or modify movement.

## Documentation

Visit [dndkit.com](https://dndkit.com) for full documentation, guides, and interactive examples.

---
_Source: https://npm.io/package/@dnd-kit/dom · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
