HoldToConfirm
A button that runs its action only after being held down, for destructive actions whose consequence is already visible on screen.
Examples
Nothing deleted yet.
Hold the button for two seconds.
When to use HoldToConfirm
Use when
Use HoldToConfirm for destructive or hard-to-undo actions, like deleting a branch or force pushing, where the person can already see what will happen.
Avoid when
Avoid it for safe, easily reversed actions, where a Button is enough, and when people need to read the consequences first, where a Modal fits better.
Accessibility
Press and hold with a mouse, finger or pen, or hold Space or Enter. Releasing early, tabbing away or sliding well off the button cancels. A hidden hint describes the hold, the label follows the visible text and a polite status announces the result.