Modal
A focused task above the page.
Leave this page?
Any unsent answers will be lost.
Live preview · click to try it
Variants
4 named variants. Layer names match the names below.
Leave this page?
Any unsent answers will be lost.
DialogModal / Dialog
Leave this page?
Any unsent answers will be lost.
ConfirmModal / Confirm
Filters
Any unsent answers will be lost.
SheetModal / Sheet
Preview
Any unsent answers will be lost.
Full ScreenModal / Full Screen
States
Modal / Closed
Leave this page?
Any unsent answers will be lost.
Modal / Open
Usage
Do
- Confirmations, video, image zoom.
Don't
- Anything that could be a page.
Properties
| Property | Type or options | Default |
|---|---|---|
| Variant | Dialog · Confirm · Sheet · Full Screen | Dialog |
| Title | String | Leave this page? |
| Body | String | Any unsent answers will be lost. |
| Primary action | String | Leave |
Styles it uses
Surface/RaisedInk/PrimaryInk/SecondaryOverlay/VeilOverlay/ShadowAccent/AcidLine/StrongState/Focus
Text: H3 · Body · Button M
Accessibility
- Keyboard reachable with a visible 3px State/Focus ring.
- Interactive parts use real buttons and links with accessible names.