This example demonstrates a modal dialog that is closed by default. Click the button to open it.
Example Modal
This is a simple modal dialog. It traps focus while open and can be closed by clicking the backdrop, pressing the Escape key, or using the Close button.
Try tabbing through interactive elements below to see focus remain within the dialog.