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

# Hold to Delete

> Press and hold as a fill sweeps across; release early to cancel, hold to the end to delete. Prevents accidental destructive taps.

## Install

```bash
npx motion-ui-skill add hold-to-delete-button
```

## Dependencies

- `clsx`
- `lucide-react`
- `react`
- `tailwind-merge`

## Usage

```tsx
"use client";

import { HoldToDeleteButton } from "@/components/buttons/hold-to-delete-button";

export function HoldToDeleteButtonDemo() {
  return (
    <div className="flex items-center justify-center p-6">
      <HoldToDeleteButton />
    </div>
  );
}
```

## API Reference

### HoldToDeleteButton

| Prop | Type | Default | Required | Description |
| :--- | :--- | :--- | :--- | :--- |
| `className` | `string` | — | No | Additional CSS classes |

## Source Files

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