This modal component demonstrates how to create an accessible dialog that is hidden until triggered. It locks focus when opened and restores it to the trigger when closed.
You can close it by clicking the close button, pressing Escape, or clicking outside the dialog.