badtz

Swipe Button

Buttons 55

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>
  )
}

Dependencies

More by badtz

View all
  • Animated Card Chart

    Animated Card Chart

    1K
  • Animated Card Diagram

    Animated Card Diagram

    631
  • Animated Card

    Animated Card

    465
  • dock

    dock

    342
  • Glowing Button

    Glowing Button

    213
  • Border Beam

    Border Beam

    185
  • Cursor Cards

    Cursor Cards

    181
  • Star Button

    Star Button

    87

More in Buttons

View all
  • Button

    Button

    1
  • Texture Button

    Texture Button

    97
  • Eclipse Button

    Eclipse Button

    39
  • App Store Button

    App Store Button

    458
  • HeroUI Button Group

    HeroUI Button Group

    2
  • Button

    Button

    4
  • Button

    Button

    65
  • Button

    Button

    68