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,兼具准确性和速度
面向 SaaS 专业人士的 AI 助手
带实时翻译功能的 AI 电话应用程序
令人愉快的 AI 支持的互动演示—现在无需登录
AI 动态图形副驾驶
抛洒彩带,摆脱压力和焦虑,100% 无需人工智能
SaaS 的顺畅支付