Hold to confirm

Also called press and hold or long press to confirm

A button you press and hold for a moment, with a fill that shows progress, used to confirm a destructive or important action.

What is Hold to confirm?

A hold-to-confirm button asks for a deliberate press instead of a quick click. While you hold it, a fill sweeps across the button. Let go early and the fill drains away with nothing done; hold until the fill completes and the action runs.

It is a lighter alternative to an "Are you sure?" dialog for actions like deleting a project, sending money, or ending a call. A hold of about one to two seconds is long enough to prevent accidents and short enough not to feel like a chore.

Say "Hold to delete" in the label, since few people expect to hold a button. Make it work from the keyboard by starting on keydown of Space or Enter and cancelling on keyup. Holding can be hard for people with limited motor control, so an undo option afterward is a good companion.

All terms

Press feedback

A quick visual response, usually a slight shrink, that shows a button registered the press the moment a finger or mouse button goes down.

Progress bar

A horizontal bar that fills from left to right to show how much of a task is done, or slides in a loop while the total is still unknown.

Undo

A way to reverse an action right after doing it, often a toast with an Undo button that appears after deleting or archiving something.

Micro-interaction

A small moment of feedback around a single action, like a heart that bursts when tapped or a copy icon that turns into a checkmark.