Skip to main content

Toast

Use Toast to show users live, time-sensitive messages about system status changes. Toast variants for four different kinds of messages are provided.

When to use

  • For subtle but visible feedback, regardless of where the user is in an app. The toast message doesn't need to be related to the user's current context.
  • For temporary messages that shouldn't disrupt the user's workflow significantly.

When not to use

  • For warnings about impactful changes, such as scheduled system maintenance. Instead, use a MessageContainer.
  • For directions at the beginning of a form. Try an inline message in the UI instead.
  • To validate simple actions, such as when something is copied to the clipboard or downloaded. If the effect is obvious (or the browser provides feedback), no toast is needed.

Types of toast

Strato provides four types of toast. Each type has unique uses and behaviors, as described below.

Four Toast types, each with a distinct color and icon: Default, Success, Warning, and Critical.

Four Toast types, each with a distinct color and icon: Default, Success, Warning, and Critical.

Default toast

  • Use for generic information that's neither positive nor negative. For example, a notification of an automatic update that occurred during a process.
  • Default toasts close automatically.

Success toast

  • Use for positive feedback or to let users know that an action or process was successful. For example, when an access request is triggered and sent to an administrator.
  • Success toasts close automatically.

Warning toast

  • Use to inform users about a potential issue or something that could cause a problem. For example, an unessential process that failed.
  • Warning toasts don't close automatically.

Critical toast

  • Use for negative feedback or to let users know about issues that require immediate attention. For example, an essential action or process that failed.
  • Critical toasts don't close automatically.

Position

Always place toasts at the bottom left of the screen, unless it would cover essential content in your app.

Content guidelines

Anatomy of a Toast with three numbered callouts mapping to the parts described below: Title, Details, and Action.

Anatomy of a Toast with three numbered callouts mapping to the parts described below: Title, Details, and Action.

  1. Title (required)
  2. Details (optional)
  3. Action (optional)

General guidelines

  • Use sentence case (capitalize only the first word and any proper nouns, such as brand names).
  • Avoid unnecessary words such as “the”, “a”, “an”, “successfully”, and “unsuccessfully".

Title

The title is always required. A single line is enough for simple confirmations (mostly default and success toasts) that don't require extra context or actions.

  • Keep it short: Five words or fewer.
  • Start with a verb in the past tense for completed actions: Verb ends in [-ed] + [item name]. Match it with the trigger action (For example: Delete -> Deleted).

Example of a correct success Toast titled "Created segment", using verb-then-item order, and an incorrect one titled "Segment created", reversing the order.

Example of a correct success Toast titled "Created segment", using verb-then-item order, and an incorrect one titled "Segment created", reversing the order.

  • Don't use end punctuation (no periods or exclamation marks) in titles.

Example of a correct success Toast titled "Permanently deleted Nb123" with no punctuation, and an incorrect one reading "Success! The notebook Nb123 was deleted permanently."

Example of a correct success Toast titled "Permanently deleted Nb123" with no punctuation, and an incorrect one reading "Success! The notebook Nb123 was deleted permanently."

  • For errors, start with "Couldn't".

Example of a correct error Toast titled "Couldn't save changes", and an incorrect one titled "Saving failed." that doesn't start with "Couldn't".

Example of a correct error Toast titled "Couldn't save changes", and an incorrect one titled "Saving failed." that doesn't start with "Couldn't".

  • If you must include file names, place them at the end, unformatted (no quotes, all caps, or symbols).

Example of a correct success Toast titled "Created Copy of dashboard-123", and an incorrect one titled "(Copy of dashboard-123) successfully created".

Example of a correct success Toast titled "Created Copy of dashboard-123", and an incorrect one titled "(Copy of dashboard-123) successfully created".

  • For bulk actions, use a number instead of listing items.

Example of a correct bulk-action success Toast titled "Deleted 4 guardians", and an incorrect one titled "Deleted Easytravel, Four golden signals, carts, search." listing every item.

Example of a correct bulk-action success Toast titled "Deleted 4 guardians", and an incorrect one titled "Deleted Easytravel, Four golden signals, carts, search." listing every item.

Details

Details are optional. Add details to toasts (mostly warning or critical) that need a brief clarification or context, such as why it failed.

  • In one to two short sentences, explain what happened or what to do next.
  • Punctuate details with a period at the end.

Example of a correct error Toast titled "Couldn't delete Untitled dashboard" and details "Check your connection and try again." ending in a period, and an incorrect one missing it.

Example of a correct error Toast titled "Couldn't delete Untitled dashboard" and details "Check your connection and try again." ending in a period, and an incorrect one missing it.

Action button

The action button is optional. Only add buttons to actionable toasts, such as follow-up steps or cross-app actions.

  • Limit to one action button per toast.
  • Use icons only if they clearly support the action (for example: copy or add).

Two correct success Toasts, each with one action button: "Deleted dashboard123" with "See recently deleted", and "Created my_SLO" with "Add to Dashboards".

Two correct success Toasts, each with one action button: "Deleted dashboard123" with "See recently deleted", and "Created my_SLO" with "Add to Dashboards".

Two correct examples: an error Toast titled "Couldn't load results" with a plain "Try again" button, and a success Toast titled "Created SLO fast burn rate alert" with an "Automate" IntentButton.

Two correct examples: an error Toast titled "Couldn't load results" with a plain "Try again" button, and a success Toast titled "Created SLO fast burn rate alert" with an "Automate" IntentButton.

Still have questions?
Find answers in the Dynatrace Community