Hold Button
A hold-to-confirm button: the action fires only after you press and hold for a moment, and releasing early cancels it — a deliberate, slip-resistant confirmation. Works with the pointer and with Space/Enter held on the keyboard.
- Axe
- Focus
Preview
Press and hold to confirm
Installation
npx shadcn@latest add https://ui.publictheta.com/r/hold-button.jsonConformance
Verified against the @publictheta/ui-spec hold-button specification on both the React and vanilla reference implementations, across Chromium, Firefox, and WebKit.
- Axe — No WCAG 2 A/AA axe-core violations
- Focus — A visible focus indicator appears on keyboard focus (WCAG 2.4.7)
See the full conformance matrix across all components.