Toast

Toast allows you to convey quick messaging notifications to the user.

DesignUsageAccessibilityUpdates

Purpose

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.

Disappear automatically

Toasts dismiss themselves after a few seconds, so users don't have to manually close them to continue working.

Non-blocking by design

Unlike a modal, a toast doesn't prevent interaction with the page — users can keep working while the notification is visible.

Anatomy

Changes have been saved successfully. Undo
1

Toast surface

2

Title

3

Body content

4

Action

Configuration

Variant

Toast variants use colour and context to communicate the nature of the notification.

Changes have been saved successfully. Undo

Use to confirm that an action completed successfully — such as saving, submitting, or deleting an item.

Playground

BETA
Changes have been saved successfully. Undo

Structure

Changes have been saved successfully. Undo

Component tokens

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/toast
CategoryComponent tokenSemantic tokenValuePaddingpadding-mdsgds/padding/md16pxpadding-xlsgds/padding/xl24pxGapgap-2-xssgds/gap/2-xs4pxgap-smsgds/gap/sm12pxBorderborder-radius-mdsgds/border-radius/md8pxTypographyfont-size-label-smsgds/font-size/label-smfont-size-subtitle-smsgds/font-size/subtitle-smfont-weight-regularsgds/font-weight/regularfont-weight-semiboldsgds/font-weight/semiboldline-height-2-xssgds/line-height/2-xsColourcolor-subtlesgds/color-subtle#525252link-color-defaultsgds/link-color-default#0269D0surface-defaultsgds/surface-default#FFFFFFprimary-color-defaultsgds/primary/color/defaultsuccess-color-defaultsgds/success/color/defaultdanger-color-defaultsgds/danger/color/defaultwarning-color-fixed-lightsgds/warning/color/fixed-lightSizedimension-280sgds/dimension/280

Usage

When to use

  • Use toast for brief status updates that confirm an action or surface a timely non-blocking message.
  • Use it when users can continue their task without stopping to resolve the message immediately.

When not to use

  • Do not use toast for important content that must stay visible until the user reads it.
  • Do not show several toasts in quick succession for related updates.

Best practices

Changes have been saved successfully. Undo
Keep the toast brief

A short message with one clear outcome helps users recognise what just happened.

Changes have been saved successfully. Undo Changes have been saved successfully. Undo
Do not use toast for permanent guidance

If users need the content to stay visible, it should not disappear on its own.

Accessibility considerations

Built-in accessibility

  • Toasts expose their message as an assertive live alert when shown.
  • Dismissible toasts use the SGDS close button.

Labels and content

  • Use toast messages for short status updates.
  • Do not use a toast as the only place for important instructions.

Focus and interaction

  • Do not move focus to a toast automatically for routine status updates.
  • If a toast includes a close button, it should remain reachable without interrupting the task.

Keyboard interaction

This component does not have a separate keyboard interaction table because:

  • Toast messages are status updates and should not take focus automatically.
  • Dismissible toasts use the close button's native keyboard behaviour.

Updates

DateVersionDescriptionLoading updates…

Roadmap

Planned itemStatusTargetFuture enhancements for toastPlannedTBD

Feedback

Have suggestions or feedback?

Share them with us on Slack → #design-system-feedback

Bug Reports

Found a bug or issue?

Report it on GitHub Issues → sgds/components/toast

Singapore Government Design System

The Singapore Government Design System was developed to empower teams in creating fast, accessible and mobile-friendly digital services.