Dev Design Library

Hold to Confirm

A press-and-hold confirmation button for destructive actions with a filling progress ring, spring-back on early release, and a success check morph on completion.

Hold to Confirm preview
Library
Spectrum UI
Framework
React
Type
component
License
Apache-2.0
Dependencies
framer-motion, lucide-react
Install
npx shadcn@latest add @spectrumui/hold-to-confirm
Files
  • app/registry/hold-to-confirm/hold-to-confirm.tsx
  • lib/utils.ts
Source
https://github.com/arihantcodes/spectrum-ui

Categories

More from Spectrum UI