Demand focused attention
Modals block the background to ensure users engage with critical information or complete a required action before continuing.
The modal component informs users about a specific task and may contain critical information that requires a decision.
Modals block the background to ensure users engage with critical information or complete a required action before continuing.
Use modals to confirm destructive or irreversible actions — deleting a record, submitting a form — so users don't act by accident.
A modal should contain everything needed to complete its task — title, body, and clear actions — so users don't need to leave it to find context.
The modal can contain short supporting content and clear actions.
Dialog surface
Title (slot)
Description (slot)
Content
Footer (optional)
Modals are blocking dialogs that focus users on a single critical task or decision.
The modal can contain short supporting content and clear actions.
Renders a blocking dialog that focuses users on a single task. Use for confirmations, destructive actions, or short flows that require a decision before the main page can continue.
The modal can contain short supporting content and clear actions.
The modal can contain short supporting content and clear actions.
Component tokens are specific to each component. Use the table title as the prefix: padding-md under sgds/btn means sgds/btn/padding-md.
sgds/padding/mdsgds/padding/xlsgds/gap/2-xlsgds/gap/mdsgds/gap/smsgds/border-radius/mdsgds/font-size/24sgds/line-height/24sgds/line-height/40sgds/color-subtlesgds/surface-defaultsgds/bg-overlaysgds/dimension/480sgds/dimension/640sgds/dimension/800The modal can contain short supporting content and clear actions.
A modal should present one clear task with one clear next step.
The modal can contain short supporting content and clear actions.
The modal can contain short supporting content and clear actions.
When a modal becomes too dense, users lose context and the interaction becomes harder to finish.
TabShift+TabEscShare them with us on
Report it on GitHub
The Singapore Government Design System was developed to empower teams in creating fast, accessible and mobile-friendly digital services.