FormKit Drag and Drop
freeData-first sortable lists in about 4 KB: your array is the source of truth and reorders as you drag.

Try these
dnd-kit
Accessible drag-and-drop toolkit for React: sortable lists, kanban boards, keyboard dragging.
Pragmatic drag and drop
Atlassian's tiny, framework-agnostic drag-and-drop built on the native HTML5 DnD API (powers Trello and Jira).
AutoAnimate
One line of code that animates children being added, removed or moved inside a parent.
Sonner
Opinionated toast component with stacking, swipe to dismiss and promise toasts; ports for Vue, Svelte, Solid and Angular.
For your agent
Install
npm i @formkit/drag-and-dropUse it for
- a sortable list or playlist with almost no setup
- moving items between two lists (todo / done)
- a Vue or Solid app that wants the same DnD API as React
Skip it when
- dragging a divider to resize split panes or panels: the kit's Resizable part (react-resizable-panels under shadcn/ui)
- keyboard and screen-reader dragging is required: use dnd-kit
- large boards with nested drop targets or cross-window drags: use pragmatic-drag-and-drop
What's inside17 free
- useDragAndDrop
- dragAndDrop
- Sortability
- Draggable
- Transferability
- Disable sort
- Accepts
- Drag Handles
- Drag Ignore
- Updating Config
- Multi Drag
- Drop or Swap
- Insert (experimental)
- Animations (experimental)
- Events
- Configuration
- Accessibility
Facts
- Frameworks
- react, vue, svelte, solid, angular, vanilla
- Styling
- unstyled
- Weight
- small
- Accessibility
- weak
- Maturity
- stable
- License
- MIT
- Price
- Free
Pairs with
Alternatives
import { useDragAndDrop } from '@formkit/drag-and-drop/react'
const [ref, tapes] = useDragAndDrop(['Depeche Mode', 'Duran Duran', 'Kraftwerk'])
<ul ref={ref}>
{tapes.map((tape) => <li key={tape}>{tape}</li>)}
</ul>https://drag-and-drop.formkit.com
Loading website