Skip to content

Swapy

Turn any layout into a drag-to-swap layout with a few lines

Visit official site

What Swapy is

The tool is described as a framework-agnostic utility that converts any layout into a drag-to-swap layout with only a few lines of code.

What you can do with it

  • Add drag-to-swap behaviour with little code
  • Pick dynamic, spring or no animation
  • Define custom drag handles
  • Listen for events after a swap

Application scenarios

  • Reorder products on a store site by dragging
  • Move task cards to change priority in a project tool
  • Rearrange the order of course content

Pros & cons

✓ What we like

  • Installation works through npm or a CDN
  • React, Vue and Svelte are named as supported

! What to watch out for

  • The setup needs data attributes on the layout elements
  • Initialisation calls createSwapy() on a container

FAQ

Which frameworks are named?

The material lists React, Vue and Svelte.

How is it added to a project?

The material states installation through npm or a CDN.

Last reviewed: 2026-11-15

More AI coding tools tools

View all →

How we review