Kodza

Hold to Confirm

For the actions you cannot take back: hold it down and an ink pill fills the button, let go too early and it drains back, hold to the end and it ticks. Mouse, finger, Space or Enter.

Buttons No dependencies buttonholdconfirmdestructiveprogress Added Oct 2026
/anim/hold-to-confirm/ Fullscreen

With your AI

Just ask.

Say it to your AI. It gets the exact code below, not its best guess, and knows where it goes.

Add the Kodza Hold to Confirm to my page.

Not plugged in yet?
claude mcp add -t http kodza https://kodza.dev/api/mcp
Also in Codex, Cursor and VS Code.
kodza-hold-to-confirm.html
<button class="kodza-hold-to-confirm" type="button">
  <span class="kodza-hold-to-confirm__icon" aria-hidden="true"><svg viewBox="0 0 24 24"><path d="M4.5 7h15M9.5 7V4.5h5V7M6.5 7l.9 12.5h9.2l.9-12.5" /><path d="M5.8 12.6l4 4 8.4-8.8" pathLength="1" /></svg></span>
  <span class="kodza-hold-to-confirm__label"><span>Hold to delete prod</span><span>Keep holding</span><span>Prod deleted</span></span>
</button>

<button class="kodza-hold-to-confirm kodza-hold-to-confirm--solid" type="button" data-hold="2400">
  <span class="kodza-hold-to-confirm__icon" aria-hidden="true"><svg viewBox="0 0 24 24"><path d="M7 17L17 7M9 7h8v8" /><path d="M5.8 12.6l4 4 8.4-8.8" pathLength="1" /></svg></span>
  <span class="kodza-hold-to-confirm__label"><span>Hold to deploy on Friday</span><span>Brave. Keep going</span><span>Shipped on a Friday</span></span>
</button>

Checked

Checked before you paste.

Robots poked at it before you did. Every component goes through the same checks, and again each time it changes.

What ranLast run
Accessibilityaxe-core 4.10.2: the WCAG 2.1 A and AA rules, plus best practices. 0 issues
KeyboardThe Tab key gets there, and the focus ring shows when it does. Passed
Reduced motionTurn on reduced motion and what moved just appears. Nothing loops. Passed
Light and darkThe same checks on both themes, contrast included. Passed
WordPressPasted into Twenty Twenty-Five, Twenty Twenty-One, Astra, Blocksy, GeneratePress, Hello Elementor, Kadence and OceanWP. Nothing to flag. 8 / 8 themes
Robots checked this. A human with VoiceOver hasn't yet.
KeyboardPress them in the preview
On the button
  • Hold to fill and confirm, let go early to cancelEnter/Space

More like this

More in Buttons