---
title: "Slide to Detonate | Free React & Tailwind Craft Component | Motion UI"
canonical: "https://blacknest.dev/motion/c/craft/slide-to-detonate"
github_source: "https://github.com/Rkj0123/motion-ui-skill/blob/main/components/buttons/slide-to-detonate.tsx"
install_command: "npx motion-ui-skill add slide-to-detonate"
dependencies: ["clsx","motion","react","tailwind-merge"]
category: "craft"
subcategory: "buttons"
---

# Slide to Detonate

> Slide-to-confirm safety trigger that requires dragging a lock handle across a burning fuse to detonate.

## Install

```bash
npx motion-ui-skill add slide-to-detonate
```

## Dependencies

- `clsx`
- `motion`
- `react`
- `tailwind-merge`

## Usage

```tsx
"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 |

## Source Files

- [components/buttons/slide-to-detonate.tsx](https://github.com/Rkj0123/motion-ui-skill/blob/main/components/buttons/slide-to-detonate.tsx)
- [lib/utils.ts](https://github.com/Rkj0123/motion-ui-skill/blob/main/lib/utils.ts)
