Modal Dialog Component

This example uses the native HTML dialog element, opens via a button with the class "trigger", and is closed by default.

You can close the modal by pressing Escape, clicking the close button, or clicking the backdrop.