Confirm without interrupting
Use toasts for short, non-blocking status messages.
Use toasts for short, non-blocking status messages.
Autohide lets transient messages disappear after a short delay.
Toasts appear above the page while users continue their work.
Icon
Title
Content
Action
Close button
Container
Toast variants use colour and context to communicate the nature of the notification.
Use to confirm that an action completed successfully, such as saving, submitting, or deleting an item.
Dismissible toasts give users control to clear them. Pair with autohide for transient messages and keep dismissible for messages users may want to read again.
Toast remains until autohide or programmatic close.
Autohide makes the toast disappear after a delay. Use it for confirmations or transient updates that do not need acknowledgement.
Toast persists until the user closes it or the app removes it.
Toast position controls where the toast stack appears in the viewport.
Use top end for common non-blocking status updates.
Toast supports action and icon slots for brief follow-up actions and visual context.
Use slots only when the action or icon adds clear value to the message.
Delay controls how long an autohide toast remains visible.
Use the default 5000ms (5 seconds) delay for short, routine messages.
Each row is a colour, spacing, or size value the component uses, and the right-most column tells you where in the component you'll see it.
sgds-padding-md16pxsgds-padding-md16pxsgds-padding-xl24pxsgds-gap-2-xs4pxsgds-gap-sm12pxsgds-layout-gap-md—sgds-border-radius-md8pxsgds-font-size-label-sm—sgds-font-size-subtitle-sm—sgds-font-weight-regular—sgds-font-weight-semibold—sgds-line-height-2-xsHeight variessgds-dimension-280—sgds-dimension-480—sgds-spacer-8—sgds-z-index-overlay—sgds-font-size-subtitle-sm16pxsgds-font-weight-semibold600sgds-line-height-2-xs20pxsgds-font-size-label-sm14pxsgds-font-weight-regular400sgds-spacer-832pxsgds-z-index-overlay800Toasts acknowledge background actions like save or send without interrupting the user's current task.
Errors that require action or block the task belong in an inline alert or modal, where they stay visible.
Use success for confirmations, info for neutral updates, warning for issues, and danger for failures.
Stacked toasts compete for attention. Surface only the most relevant, or batch related updates into one.
Keep to a brief title and one supporting line. Add an action like Undo or View when it helps recovery.
Toasts dismiss themselves and may be missed. For must-read information, use a banner, modal, or inline alert.
This component does not have a separate keyboard interaction table because:
Share them with us on Slack → #ask-sgds-v3
Report it on GitHub Issues → sgds/components/toast
The Singapore Government Design System was developed to empower teams in creating fast, accessible and mobile-friendly digital services.