TLDR · PROGRAMMING, DESIGN & DATA SCIENCE

SWAPY

github.comGitHub repository

Summary from the TLDR newsletter

Swapy is a simple JavaScript tool that converts any layout into a drag-to-swap one with just a few lines of code. It is framework agnostic and there are examples in the repository for how to use it with React, Vue, and Svelte. Swapy can listen to swap events and layouts can be as complex as users desire. An interactive example is available on the website linked in the repository.