This example shows a modal dialog component that is closed by default. Click the button to open it.
This modal is initially closed. It supports keyboard interaction (Esc to close) and focus trapping while open.
Try navigating with Tab to see the focus loop.
Example controls inside the dialog: