Dismiss with confidence
A visible, accessible close affordance tells users they can exit a surface — modal, drawer, or alert — without uncertainty.
A close button dismisses surfaces such as modals, drawers, alerts, and toasts.
A visible, accessible close affordance tells users they can exit a surface — modal, drawer, or alert — without uncertainty.
The × pattern is immediately understood across contexts, reducing the need for text labels in tight spaces.
Built-in focus and hover states ensure the button is reachable and operable for all users, regardless of input method.
Button container
Close icon
The close button is a compact dismiss control for surfaces like modals, drawers, alerts, and toasts.
Renders a compact dismiss control. Use wherever users need a clear way to close a surface such as a modal, drawer, alert, or toast.
Component tokens are specific to each component. Use the table title as the prefix: border-color-transparent under sgds/close-button means sgds/close-button/border-color-transparent.
sgds/border-color-transparentsgds/border-radius/smsgds/border-width/1sgds/color-fixed-darksgds/color-fixed-lightsgds/icon-size/smsgds/bg-translucentsgds/bg-transparentsgds/dimension/24sgds/dimension/32sgds/close-btn-border-radiussgds/outline-focussgds/outline-offset-focusShort labels are easier to scan and support the main content without competing with it.
When the label becomes too long or too vague, it stops helping users orient themselves.
TabShift+TabEnterSpaceShare 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.