Hold to Confirm. Hold it down and ink fills the button. Let go too early and it drains back. For delete prod, and everything else you can't take back.
Plain HTML, CSS and JS. Zero dependencies.
#22/1000 → kodza.dev/components/hold-to-confirm/
#buildinpublic
Hold to Confirm. Hold it down and ink fills the button. Let go too early and it drains back. For delete prod, and everything else you can't take back. Plain HTML, CSS and JS. Zero dependencies. #22/1000 → kodza.dev/components/hold-to-confirm/ #buildinpublic
0 vue
Publié le 14/11/2026 14:00
0:18
Hold to Confirm. Hold it down and ink fills the button. Let go too early and it drains back. For delete prod, and everything else you can't take back.
Plain HTML, CSS and JS. Zero dependencies.
#22/1000 → kodza.dev/components/hold-to-confirm/
#buildinpublic
1 commentaire
?
ink draining back when you let go early is a nice touch for delete prod. does it work for keyboard users too, like holding space or enter
Yes. Hold Space or Enter, same fill, and letting go early drains it back too.