Skip to content
Menu

Buttons

Hold to delete

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.

Using Hold to delete

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

Customize the preview

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

ControlTypeDefaultPreview limits
labeltextHold to deleteUp to 28 characters
holdMsnumber1600From 600 to 4000; step 100
accentcolor#FF4D8DNo additional limit in the metadata.
showCountdownbooleanfalseNo additional limit in the metadata.
glyphselectbinOptions: bin, archive, block, none
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.

Connect your agent

Related open components