Popconfirm asks a question next to the control that raised it, so the page stays where it is. Use it when the action is immediate, single, and fits in one sentence.
- Deleting or archiving one named thing: a row, a file, a comment.
- Revoking something that stops working right away: an API key, an invite, a session.
- Leaving work behind: discarding a draft, closing a form with unsaved changes.
- A toggle whose off position is costly to undo.
Use something else when:
- The consequence needs full attention. Use Modal, which takes and keeps focus, closes on Escape and has room to list what will go. Anything that asks the reader to type a name to confirm is a Modal.
- The reader must answer. Popconfirm closes on a click outside, so dismissing it and canceling are the same gesture. Use Modal.
- The action can be undone. Let it happen and offer Undo in a message afterwards.
- The bubble is not a question. Use Popover. Popconfirm needs a title and always shows at least one button.