badtz

Swipe Button

Buttons 59

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

    1.1K
  • Animated Card Diagram

    Animated Card Diagram

    680
  • Animated Card

    Animated Card

    488
  • dock

    dock

    364
  • Glowing Button

    Glowing Button

    228
  • Cursor Cards

    Cursor Cards

    207
  • Border Beam

    Border Beam

    205
  • Star Button

    Star Button

    97

More in Buttons

View all
  • Button

    Button

    172
  • Texture Button

    Texture Button

    122
  • Button

    Button

    22
  • Button

    Button

    89
  • Button Group

    Button Group

    1
  • Button Group

    Button Group

    6
  • Button

    Button

    54
  • Native Button

    Native Button

    17