About
Here is Swipe Button component
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Swipe Button to your project and fits it to your theme.
Code
How Swipe Button is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client"
import confetti from "canvas-confetti"
import { SwipeButton } from "@/components/ui/swipe-button"
export default function SwipeButtonDemo() {
const triggerConfetti = () => {
confetti({
particleCount: 100,
spread: 70,
origin: { y: 0.6 },
})
}
return (
<div>
<SwipeButton onSwipeComplete={triggerConfetti} />
</div>
)
}
















