# Toast vs snackbar: is there a difference?

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.

## 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) |
| --- | --- | --- |
| Position | Bottom of the screen | Any corner or edge, often top or bottom |
| Action | At most one, as a text button | Varies: none, one or two buttons |
| How many | One at a time | Often a stack, sometimes one at a time |
| Types | Usually neutral, no status icon | Often 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](https://boing.aayushbharti.in/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](https://boing.aayushbharti.in/toast-accessibility/) 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.

## Related guides

- [Toast notification UX](https://boing.aayushbharti.in/toast-notification-ux/): When a toast helps and when it gets in the way.
- [Accessible toast notifications](https://boing.aayushbharti.in/toast-accessibility/): Toasts screen readers and keyboards can use.
- [React toast notifications](https://boing.aayushbharti.in/react-toast/): One component and one function call.

Source: https://boing.aayushbharti.in/toast-vs-snackbar/
