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-detonate

Components install as source into your project. The interactive page also includes preview, code, documentation and install tabs.

Dependencies

  • clsx
  • motion
  • react
  • tailwind-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

  • clsx
  • motion
  • react
  • tailwind-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

Browse this category