badtz

Swipe Button

Buttons 58

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

    674
  • Animated Card

    Animated Card

    487
  • dock

    dock

    362
  • Glowing Button

    Glowing Button

    225
  • Cursor Cards

    Cursor Cards

    202
  • Border Beam

    Border Beam

    198
  • Star Button

    Star Button

    96

More in Buttons

View all
  • Button

    Button

    20
  • Button

    Button

    3
  • Button Group

    Button Group

    18
  • Button

    Button

    149
  • Icon Label Subtext Button

    Icon Label Subtext Button

    69
  • Button

    Button

    9
  • Button

    Button

    37
  • Texture Button

    Texture Button

    113