Example: Modal Dialog Component

This modal is closed by default. Click the button to open it.

You can still interact with the page while the modal is closed. When the modal opens, focus will move to the dialog, and pressing Escape will close it.