Skip to main content
Demo site

Modal dialog example

This example uses a native <dialog> element. The dialog is closed by default and can be opened with the button below.

Tip: While the dialog is open, press Escape to close it, or use the visible Close button.