A modal dialog with a title, body, and action buttons, opened by a button. Use it to confirm or interrupt.
To add it, open the block inserter in the editor, choose the Patterns tab, and search for “Dialog”. Drop it in, then replace the placeholder content with your own.
Live example
This is the real Dialog pattern, rendering on this page right now. Flip the color scheme with the toggle in the header and the pattern recolors with it.
Confirm action
Are you sure?
What’s inside
Every AWT pattern is built from AWT blocks, nothing custom. Each block below is documented on its own page, with every parameter and state.
| Block | What it is |
|---|---|
| Section | A container that keeps content at a readable width with even spacing. |
| Modal opener | A button that opens the modal you choose. |
| Modal | A pop-up dialog, hidden until a Modal opener opens it. |
Accessible the moment you insert it
Every block in this pattern carries AWT’s accessibility work: a discernible name for each control, correct roles and states, a visible focus ring, and text contrast that holds in both color schemes.
Dark mode, built in
Switch to dark mode with the toggle in the header and the pattern adapts to it.