Skip to main content

Toast vs Snackbar vs Alert

Three ways to say "give the user a heads-up"

The action is done and I want to acknowledge it. Which one?

Comparison table

Toast vs Snackbar vs Alert
PatternCan carry an actionHow long it staysBlocks the userTypical use
Toast轻提示NoDisappears after 2–3sNo"Saved", "Sent"
Snackbar带操作提示条Yes (undo / retry)5–10sNo"Deleted · Undo"
Alert警示框UsuallyStays until dismissedSometimes (Alert Dialog)Errors, risks, things to handle

← Swipe to see the full table

The demos, side by side

Toast

轻提示
Hit a button and the notice floats in at the top, disappearing after 3 seconds. It has no buttons — if you need one, you want a Snackbar.

How to decide: Pure confirmation, nothing follows

Snackbar

带操作提示条

Currently: 3

After deleting, a bar with "Undo" slides up from the bottom. The difference from Toast: it has one thing you can click.

How to decide: Tells the user they can change their mind

Alert

警示框

Your cloud backup is full. Clear some space to keep backing up.

Notice it neither disappears on its own nor collapses — because the user has to deal with it.

How to decide: The kind that cannot be ignored

Decision rule

  • you just need to confirm successuse a Toast
  • you want the user to be able to undo what they just diduse a Snackbar
  • the user has to deal with the problem (something broke, something is at risk)use an Alert (an Alert Dialog when it is severe)

In one line

Toast and Snackbar get mixed up constantly. One question decides it: does the user need to tap anything? If not, it is a Toast.

Related comparisons