Confirm actions without interrupting
Toasts appear briefly to acknowledge that something worked — a save, a deletion, a form submission — without stopping the user mid-task.
Toast allows you to convey quick messaging notifications to the user.
Toasts appear briefly to acknowledge that something worked — a save, a deletion, a form submission — without stopping the user mid-task.
Toasts dismiss themselves after a few seconds, so users don't have to manually close them to continue working.
Unlike a modal, a toast doesn't prevent interaction with the page — users can keep working while the notification is visible.
Toast surface
Title
Body content
Action
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.
Component tokens are specific to each component. Use the table title as the prefix: padding-md under sgds/toast means sgds/toast/padding-md.
sgds/padding/mdsgds/padding/xlsgds/gap/2-xssgds/gap/smsgds/border-radius/mdsgds/font-size/label-smsgds/font-size/subtitle-smsgds/font-weight/regularsgds/font-weight/semiboldsgds/line-height/2-xssgds/color-subtlesgds/link-color-defaultsgds/surface-defaultsgds/primary/color/defaultsgds/success/color/defaultsgds/danger/color/defaultsgds/warning/color/fixed-lightsgds/dimension/280A short message with one clear outcome helps users recognise what just happened.
If users need the content to stay visible, it should not disappear on its own.
This component does not have a separate keyboard interaction table because:
Share 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.