BadtzUIBeta
Docs
Swipe Button

Swipe Button

A sleek swipe-to-validate button with animated text, smooth transitions.

Swipe to validate

Installation

pnpm dlx shadcn@latest add https://badtz-ui.com/r/swipe-button.json

Usage

import { SwipeButton } from "@/components/ui/swipe-button";
<SwipeButton>Swipe to validate</SwipeButton>

Props

swipe-button props.

Props

PropTypeDescriptionDefault
textstringThe text displayed in the button"Swipe to validate"
onSwipeComplete() => voidCallback function triggered when swipe is completed-
gapnumberSpace around the swipe button in pixels3
validationDurationnumberDuration of the success state in milliseconds2000
classNamestringAdditional classes for custom styling-
Blur RevealGradient Slide