← Back to Block Library

modal

A popup dialog Block. Built on the native <dialog> element, so focus trapping and closing with Escape are handled by the browser rather than custom code. 2-column key-value format. Supported keys: trigger (the text on the button that opens it), content (the modal body).

Preview

Source

| modal | |
| --- | --- |
| trigger | View size chart |
| content | Available in S/M/L. See [our sample page](/en/sample-blocks) for more. |