# Hold to delete

https://fieldbook.lizardi.mx/components/hold-to-delete-button

Category: Buttons
![Still of the Hold to delete component, a Fieldbook UI component in Buttons.](https://fieldbook.lizardi.mx/thumbs/hold-to-delete-button.webp)
Preview video: https://ejpqcxcjbiyabxkx.public.blob.vercel-storage.com/previews/hold-to-delete-button-275a2adc46.mp4 (5 s, silent)

Hold to delete: A destructive button that only fires after the pointer is held down long enough for a fill bar to sweep across it, and rewinds the moment you let go.

## Frameworks

react, vue, svelte, astro, html

## Preview controls

These controls are passed to the demo. Defaults and limits describe the preview; consult the implementation for its full prop API.

| Name | Type | Default | Options or constraints |
| --- | --- | --- | --- |
| label | text | Hold to delete | Up to 28 characters |
| holdMs | number | 1600 | From 600 to 4000; step 100 |
| accent | color | #FF4D8D | No additional limit in the metadata. |
| showCountdown | boolean | false | No additional limit in the metadata. |
| glyph | select | bin | Options: bin, archive, block, none |

## Usage notes

Hold to delete uses the inline preview frame with a light/dark theme setting.

### Which frameworks are available for Hold to delete?

Hold to delete is available for React, Vue, Svelte, Astro, HTML. The live preview uses React; the source observations below apply to index.tsx. Check the selected port before relying on the same interactions.

### What does Hold to delete depend on?

The React metadata lists these npm dependencies beyond React: motion, clsx.

### What accessibility details are visible in Hold to delete?

The React source for Hold to delete includes: attributes and handlers (aria-hidden, aria-label, aria-live, aria-valuemax, aria-valuemin, aria-valuenow, onKeyDown, onKeyUp); explicit roles (progressbar). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.

### How does Hold to delete handle reduced motion?

Hold to delete reads the motion preference in its React source through matchMedia(prefers-reduced-motion). Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.

## Install through MCP

Connect your client, call get_component to retrieve the implementation, then get_install_command for installation instructions. Choose a listed framework, integrate the returned source and verify it in your application.

```json
{
  "tool": "get_component",
  "arguments": {
    "slug": "hold-to-delete-button",
    "framework": "react"
  }
}
```

[For agents](https://fieldbook.lizardi.mx/docs/agents)
[MCP](https://fieldbook.lizardi.mx/api/mcp)

## Related open components

- [Destructive sweep button](https://fieldbook.lizardi.mx/components/destructive-sweep-button)
- [Icon takeover delete](https://fieldbook.lizardi.mx/components/icon-takeover-delete-button)
- [Send flight button](https://fieldbook.lizardi.mx/components/send-flight-button)
- [Check stroke submit](https://fieldbook.lizardi.mx/components/check-stroke-submit-button)
- [Flight path confirm button](https://fieldbook.lizardi.mx/components/flight-path-confirm-button)
- [Hinged progress button](https://fieldbook.lizardi.mx/components/hinged-progress-button)
