A framework-agnostic tool that converts any layout into a drag-to-swap one with just a few lines of code.
Swapy is a powerful, framework-agnostic tool that transforms any layout into a drag-to-swap interface with minimal code. It offers seamless integration across all frameworks, including React, Vue, and Svelte.
import { createSwapy } from 'swapy'
const container = document.querySelector('.container')
const swapy = createSwapy(container, {
animation: 'dynamic'
})
swapy.onSwap((event) => {
console.log(event.data.object)
console.log(event.data.array)
console.log(event.data.map)
})
Swapy provides examples for integration with popular frameworks:
If you find Swapy useful, consider giving it a star on GitHub.
志を同じくするプロフェッショナルと 1 対 1 の会話でマッチング
Slackの混沌から明瞭さへ、わずか数分で
30分以内に何千ものランディングページをパーソナライズ
正確さと速度を備えたドキュメント解析のための最初の LLM
SaaS専門家向けのAIアシスタント
ライブ翻訳機能付きAI搭載電話アプリ
魅力的な AI 搭載のインタラクティブなデモ—今すぐログイン不要
AI モーショングラフィック副操縦士
ストレスと不安を取り除くためにコンフェティをポップしましょう、100%AIフリー
SaaSのためのスムーズな支払い