Feedback · 5 parts · 4 states · Intermediate

Toast

A brief message about something that just happened. It floats over the page and disappears by itself.

01Anatomy

Project savedUndo

5 parts. Select a number or a name to see what each part does.

01 · Container

The floating box, usually at the bottom of the screen, above the content.

Required
Yes
Recommended
Always in the same place, so people learn where to look.

02 · Status icon

Says at a glance whether it went well or not.

Required
No

03 · Message

What happened, in a few words: “Project saved”.

Required
Yes
Recommended
One line, past tense, no “Success!”. If it needs two sentences, it’s not a toast.

04 · Action

One quick action on what just happened: Undo, Retry, View.

Required
No
When
At most one. The action must also be reachable some other way, because the toast goes away.

05 · Dismiss

Closes the toast before its time.

Required
Only in some cases
When
Needed when the toast has an action or stays until closed.

02Structure

  • Toastcomponent setauto layouthorizontalhugmin H 48padding V 8L 16R 12gap 10radius 8
  • Iconinstanceboolean
  • Messagetext
  • ActioninstanceButton / Ghostboolean
  • DismissinstanceIcon Buttonboolean
Structure
PropertyTypeValues
TypeVariantNeutralSuccessError
IconBooleantruefalse
ActionBoolean + Text“Undo · Retry”
DismissBooleantruefalse
MessageText“Project saved”

Show it in the prototype with an overlay at the bottom and an After delay trigger to close it.

03States

EnteringSlides in from the edge, in about 200 ms. It doesn’t take focus.
VisibleStays long enough to read: at least 5 seconds, longer with an action.
PausedThe timer stops while the pointer is over it or the focus is inside.
ExitingFades out by itself, or right away after Dismiss or the action.

A toast with an error that needs fixing should stay until closed, or be an alert in the page.

04Variants

NeutralJust the message, no icon. Most of the time this is enough.
SuccessAn icon that confirms it worked.
With actionUndo right after a change: the most useful toast.
ErrorSomething failed and can be retried. It stays until closed.

05Responsive behaviour

Desktop

Bottom left or centre, as wide as the message, away from the main actions.

Mobile

Full width at the bottom, above the tab bar and the keyboard, never over the button just pressed.

There is no single correct anatomy: names, variants and properties differ from one design system to another. These are common structural models distilled from established design systems and accessibility guidance.

Fuori Frame

Proven methods for designing interfaces with AI. Every two weeks, in Italian.

Subscribe