Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
D

dnd-kit

> 前端框架
Open source

The modern toolkit for building drag and drop interfaces

17.5K stars0 likes0 views
WebsiteGitHub

About

The modern toolkit for building drag and drop interfaces

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

Issues· 131 open

View all issuesOpen on GitHub
  • #2141

    Feedback styles are added and removed on every drag, forcing a full-page style recalculation

    Updated Sep 28, 2026
  • #2136

    [Svelte] DragOverlay disappears one frame before the hidden source is restored

    Updated Sep 12, 2026
  • #2111

    Active sortable item becomes invisible during drag in Chrome

    bugsveltedomtriage:doneUpdated Sep 4, 2026
  • #2118

    Keyboard sensor locks out mouse

    feature requesta11ydomtriage:doneUpdated Sep 3, 2026
  • #2132

    isSortable type guards use "any" in return type

    Updated Sep 3, 2026
  • #2128

    useSortable: dragged table row/column is offset when border-spacing is set

    Updated Aug 21, 2026
  • #2127

    Placement position of item when moving from one column to another in multiple lists

    Updated Aug 16, 2026
  • #2104

    [DragOverlay] Dont do drop animation if its not moved?

    enhancementreactdomUpdated Aug 13, 2026
  • #2083

    [@dnd-kit/core, Safari] Dragging elements in scrollable containers don't scroll all the way up.

    bugUpdated Aug 13, 2026
  • #2088

    Variable height elements produce jittering in sortable lists

    bugcollisiondomUpdated Aug 13, 2026

> Tags

TypeScriptdragdrag-and-dropdraggabledroppable

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedOct 1, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架