Skip to content
tastebase

tastebase

Sign in

Your agent gets your look, hearts and dislikes in every project. Folders follow you to every device.

We keep the name, avatar and email your provider shares. Nothing else.

FormKit Drag and Drop

free

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

by FormKit (Sasha Milenkovic) GitHub npm
visit
FormKit Drag and Drop website

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-drop
Use 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
Compare FormKit Drag and Drop with its 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>
Visit