This example uses the HTML dialog element. The modal is closed by default.
This is a simple modal dialog. It supports escaping with the Escape key, clicking the backdrop, and pressing the Close button.
Focus is automatically moved into the dialog, and returned to the trigger when it closes.