# @dnd-kit/state

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

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

## Install

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

## 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 | 2 |
| Unpacked size | 32.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 17740 |
| Maintainers | clauderic |

## Links

- npm: https://www.npmjs.com/package/@dnd-kit/state
- 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/state

## Dependencies (2)

- [tslib](https://npm.io/package/tslib.md) ^2.6.2
- [@preact/signals-core](https://npm.io/package/@preact/signals-core.md) ^1.10.0

## 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-20261015115554 — 2026-10-15
- 0.5.1-beta-20261015120014 — 2026-10-15
- 0.5.1-beta-20261015115837 — 2026-10-15
- 0.5.1-beta-20261015115628 — 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
- … 420 more at https://npm.io/package/@dnd-kit/state/versions

## README

# @dnd-kit/state

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

Internal reactive state management library for **@dnd-kit**, built on [Preact Signals](https://preactjs.com/guide/v10/signals/).

> **Note:** This is an internal package used by `@dnd-kit/abstract` and the framework adapters. You generally don't need to install or use it directly.

## Overview

Provides fine-grained reactivity primitives that power the core drag and drop state:

- **Signals** — `signal`, `computed`, `ReadonlySignal`
- **Effects** — `effect`, `effects`, `batch`, `untracked`
- **Decorators** — `reactive`, `derived`, `enumerable` for class-based reactive properties
- **Utilities** — `deepEqual`, `snapshot`, `WeakStore`, `ValueHistory`

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