Atlassian's low-level, framework-agnostic drag and drop toolchain built on the browser's native drag and drop
open sourceApache-2.0free
Pragmatic drag and drop is Atlassian's low-level drag and drop toolchain for the web. It builds on the browser's own drag and drop and works with any view layer (React, Svelte, Vue, Angular and others). A small core package (about 4.7 kB) is headless, so you control all rendering and styling, and optional packages add pieces such as drop indicators and assistive technology controls; some of the optional packages depend on React, Emotion or Atlassian's design tokens. It supports virtualised lists and works in Firefox, Safari and Chrome, including on iOS and Android. Atlassian uses it in Trello, Jira and Confluence. The packages are published under the @atlaskit npm namespace, and the GitHub repository is a one-way mirror of Atlassian's internal monorepo.
Problems it solves
- add drag and drop to lists and boards in my web app without tying it to one framework
- a small drag and drop library that uses the browser's native drag and drop
- build a Trello-style board with accessible drag and drop
Features
- a headless core package of about 4.7 kB with full control over rendering and styling
- works with any front-end framework
- optional drop indicator and assistive technology control packages
- virtualisation support and lazy loading of its packages
Limitations
- The GitHub repository is a one-way mirror of Atlassian's internal monorepo and doesn't accept code contributions; npm releases can appear up to a day before the mirror shows the code.1
Alternatives
The same job
These do what Pragmatic drag and drop does.
- dnd kit Lightweight, accessible drag and drop toolkit for React, Vue, Svelte, Solid and plain JavaScript
- interact.js JavaScript drag and drop, resizing and multi-touch gestures with inertia and snapping
- React DnD Drag and drop utilities for React, built on hooks and pluggable backends
