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.
Совпадение с единомышленниками для индивидуальных бесед
Перейдите от хаоса Slack к ясности за считанные минуты
Персонализируйте тысячи посадочных страниц менее чем за 30 минут
Первый LLM для анализа документов с точностью и скоростью
AI-помощники для специалистов SaaS
Телефонное приложение с искусственным интеллектом с синхронным переводом
Захватывающие интерактивные демонстрации, работающие на основе искусственного интеллекта, — теперь без регистрации
AI-помощник в создании анимации
Пускайте конфетти, чтобы избавиться от стресса и тревоги, 100% без ИИ
Плавные платежи для SaaS