Toast vs. Alert
A toast slides in, confirms something that already happened ("Saved"), and leaves by itself — you never have to touch it. An alert interrupts: it blocks with a question or warning and won't go away until you choose. If the message needs no decision, it should be a toast.
How to tell them apart
- It disappears on its own after a few seconds → toast.
- It has Cancel/OK and blocks the window → alert.
- Bottom or corner of the screen → toast. Dead center → alert.
The full entries — names, anatomy, paste-ready prompts
Changes saved
Toast (Snackbar)web
role="status"
A brief, non-blocking message that appears after an action
Empty the Trash?
You can’t undo this action.
Alertmacos
NSAlert
The small centered window with a badged icon, a bold line, and Cancel/OK buttons
Still a different pair on your mind? See every commonly confused pair