# Destructive sweep button

https://fieldbook.lizardi.mx/components/destructive-sweep-button

Category: Buttons
![Still of the Destructive sweep button component, a Fieldbook UI component in Buttons.](https://fieldbook.lizardi.mx/thumbs/destructive-sweep-button.webp)
Preview video: https://ejpqcxcjbiyabxkx.public.blob.vercel-storage.com/previews/destructive-sweep-button-2a1d90fd78.mp4 (5 s, silent)

Destructive sweep button: A delete action whose rose to crimson shading sweeps end to end on hover, tipping the bin lid, with an optional hold to confirm line along the bottom edge.

## 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 | Delete draft | Up to 24 characters |
| accent | color | #E11D48 | No additional limit in the metadata. |
| holdToConfirm | boolean | false | No additional limit in the metadata. |
| holdMs | number | 900 | From 300 to 2000; step 50 |

## Usage notes

Destructive sweep button uses the inline preview frame with a dark theme setting.

### Which frameworks are available for Destructive sweep button?

Destructive sweep button 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 Destructive sweep button depend on?

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

### What accessibility details are visible in Destructive sweep button?

The React source for Destructive sweep button includes: native elements (button); attributes and handlers (aria-hidden, aria-label, onKeyDown, onKeyUp); key comparisons (Enter, Space). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.

### How does Destructive sweep button handle reduced motion?

Destructive sweep button reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: sweepDuration: reduced ? "1ms" : "300ms". 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": "destructive-sweep-button",
    "framework": "react"
  }
}
```

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

## Related open components

- [Icon takeover delete](https://fieldbook.lizardi.mx/components/icon-takeover-delete-button)
- [Hold to delete](https://fieldbook.lizardi.mx/components/hold-to-delete-button)
- [Staged expand delete button](https://fieldbook.lizardi.mx/components/staged-expand-delete-button)
- [Check stroke submit](https://fieldbook.lizardi.mx/components/check-stroke-submit-button)
- [Diagonal wedge button](https://fieldbook.lizardi.mx/components/diagonal-wedge-button)
- [Flight path confirm button](https://fieldbook.lizardi.mx/components/flight-path-confirm-button)
