Slide to Detonate
Slide to Detonate: Slide-to-confirm safety trigger that requires dragging a lock handle across a burning fuse to detonate. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.
Install Slide to Detonate
npx motion-ui-skill add slide-to-detonateComponents install as source into your project. The interactive page also includes preview, code, documentation and install tabs.
Dependencies
clsxmotionreacttailwind-merge
Source files
Slide to Detonate
Slide-to-confirm safety trigger that requires dragging a lock handle across a burning fuse to detonate.
Install
npx motion-ui-skill add slide-to-detonate
Dependencies
clsxmotionreacttailwind-merge
Usage
"use client";
import { SlideToDetonate } from "@/components/buttons/slide-to-detonate";
export function SlideToDetonateDemo() {
return (
<div className="flex items-center justify-center p-6">
<SlideToDetonate>Click Me</SlideToDetonate>
</div>
);
}
API Reference
SlideToDetonate
| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
onDetonate |
() => void |
— | No | Callback invoked when slider reaches detonation threshold |
className |
string |
— | No | Additional CSS classes |