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.
Tudo o que você precisa para compartilhar seus pensamentos
Combine-se com profissionais que pensam como você para conversas individuais
Passe do caos do Slack à clareza em minutos
Personalize milhares de páginas de destino em menos de 30 minutos
O primeiro LLM para análise de documentos com precisão e velocidade
Assistentes de IA para profissionais de SaaS
Aplicativo de chamadas telefônicas com tecnologia de IA com tradução ao vivo
Demos interativas cativantes impulsionadas por IA, agora sem necessidade de login
Copiloto de gráficos em movimento com IA
Faça pop em confete para se livrar do estresse e da ansiedade, 100% livre de IA
Pagamentos suaves para SaaS