Alerts & Dialogs

medium

Native browser dialogs, an in-page modal, and toasts that vanish on their own.

Native dialogs

These buttons fire real alert(), confirm() and prompt() dialogs. Your framework must register a dialog handler before clicking — the status line reports what you did.

No native dialog triggered yet.

Modal

An in-page modal with a focus trap. Focus lands in the input on open; Esc closes it, clicking the backdrop closes it, and Tab cycles inside the dialog.

Modal has not been opened yet.

Toasts

Toasts stack in the bottom-right corner and auto-dismiss after 3 seconds — assert them before they vanish, or close one early with its × button.

0 toasts fired, 0 visible