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 बातचीत के लिए समान विचारधारा वाले पेशेवरों से मिलान करें
मिनटों में स्लैक के अराजकता से स्पष्टता तक जाएँ
30 मिनट से कम में हजारों लैंडिंग पेज को निजीकृत करें
सटीकता और गति के साथ दस्तावेज़ पार्सिंग के लिए पहला एलएलएम
SaaS पेशेवरों के लिए AI सहायक
लाइव ट्रांसलेशन के साथ AI-पावर्ड फोन कॉल ऐप
आनंददायक AI-संचालित इंटरैक्टिव डेमो—अब लॉगिनलेस
AI मोशन ग्राफिक्स कोपायलट
तनाव और चिंता से छुटकारा पाने के लिए कंफ़ेटी फोड़ें, 100% AI-मुक्त
SaaS के लिए सुचारू भुगतान