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.
Semua yang Anda butuhkan untuk berbagi pemikiran Anda
Cocokkan dengan profesional yang berpikiran sama untuk percakapan 1:1
Beralih dari Kekacauan Slack ke Kejelasan dalam Hitungan Menit
Personalisasi ribuan halaman arahan dalam waktu kurang dari 30 menit
LLM pertama untuk parsing dokumen dengan akurasi dan kecepatan
Asisten AI untuk profesional SaaS
Aplikasi panggilan telepon bertenaga AI dengan terjemahan langsung
Demo interaktif yang menyenangkan yang didukung AI—sekarang tanpa login
Kopilot Grafik Gerak AI
Lepaskan konfeti untuk menghilangkan stres & kecemasan, 100% bebas AI
Pembayaran yang Lancar untuk SaaS