Skip to content
boing

Guide

Toast vs snackbar: two names for one pattern

A toast and a snackbar are the same pattern: a short message that appears near the edge of the screen and disappears on its own. “Snackbar” is the name Material Design uses; most web libraries say “toast”. The differences are conventions, not separate components.

Try it

Where do the names come from?

“Toast” is usually explained as bread popping up from a toaster, the way the message pops up from the edge. Android has long had a Toast class for brief messages. Google’s Material Design later introduced the “snackbar”, a similar bar that can also carry one action, and Material libraries on the web, such as MUI, name their component Snackbar.

Elsewhere on the web, “toast” stuck: most React libraries, including Sonner, react-hot-toast and Boing, use it.

What differs in practice?

Snackbar (Material)Toast (typical web library)
PositionBottom of the screenAny corner or edge, often top or bottom
ActionAt most one, as a text buttonVaries: none, one or two buttons
How manyOne at a timeOften a stack, sometimes one at a time
TypesUsually neutral, no status iconOften success, error, warning, info and loading

These are habits, not rules. Plenty of toast libraries show one message at a time, and plenty of snackbars sit at the top. Boing, for instance, keeps one toast on screen like a snackbar, while adding status icons and up to two buttons.

Which name should I use?

  • In a Material-based app, say “snackbar” so the code matches the design system.
  • Everywhere else, “toast” is the more common word in libraries, issues and search results.
  • Pick one name and use it in code, design files and copy, so nobody wonders whether they are two things.

Users do not see either word, so the choice only matters for your team. What matters to users is how the message behaves: see toast notification UX.

Same accessibility needs

Whatever you call it, the message must be announced by screen readers, reachable by keyboard when it has a button, and on screen long enough to read. The toast accessibility guide covers each of these.

Frequently asked questions

Are snackbars and toasts different components?

Yes, in all the ways that matter. Both are brief messages that appear and go away. Snackbar is the Material Design name.

Can a toast have an action button like a snackbar?

Yes. Many toast libraries support buttons. In Boing you pass an action, and optionally a secondary button.

Should I use MUI Snackbar or a toast library?

If your app is built on MUI and follows Material Design, its Snackbar fits in without extra styling. Otherwise a toast library may suit your design better.