Modal (Popup)
Modal / Dialog
A window that pops up in the middle of the screen. The page behind dims, and you have to deal with this window first.
💡 It's like a bank teller sliding a form over and saying, 'Please sign this first.'
👆 Try it yourself
It really works — click around and see.
Delete this?
This can't be undone.
🤖 Say this to your AI
When the 'Delete' button is clicked, open a Modal. It should say 'Are you sure you want to delete this?' with 'Cancel' and 'Delete' buttons, and cover the background with semi-transparent black.
The key word is ‘Modal / Dialog’. Including it helps AI understand you much more precisely.
📌 Good to know
The dark see-through layer behind it is called an 'Overlay' or 'Backdrop'. A modal for viewing images larger is called a 'Lightbox'.
When to use it
- For things people must see first, like a delete confirmation or login window
- For viewing an image larger
Also called: popup, pop-up window, dialog, dialog box, alert box, overlay, lightbox, confirm window