New Design UI/UX

Snackbar

Snackbars provide brief messages about the processes at the bottom of the screen.

Anatomy

  1. Container
  2. Supporting text
  3. Action button (optional)
  4. Close button (optional)
Snackbar anatomy with a Container, Supporting text, Action button (optional), Close button (optional)

Note : For an easy web accessibility it is better to avoid adding actions and closing buttons to your snackbar.

Best practices for Snackbar

Container

Snackbars are presented in rectangular containers with a solid grey background for legibility.

  • Use a solid background with shadow to distinguish the snackbar from content.
  • Slight transparency is acceptable, but text must remain legible.
  • Do not: significantly alter the container shape or remove elevation.
Example of snackbar with non conventional shape

Don't

Example of a snackbar with transparency

Caution

Example of a regular snackbar

Do

Text Label

Snackbars include a text label that clearly communicates the action or process being performed.

  • Keep labels short, clear, and informative.
  • Do not include icons in snackbars; if an icon is needed, consider another component.
Example of snackbar with decorative icon

Don't

Example of snackbar without decorative icon

Do

Action

Snackbars can include a single text button for user actions related to the process.

  • Action buttons should use colored text to stand out from the label.
  • Do not: use the same color for label and action, or use filled/elevated buttons.
  • Caution: A “Dismiss” button is usually unnecessary since snackbars disappear automatically.
  • Do: allow longer actions on a third line if needed, and include actions like “Undo” to let users amend choices.
Example of bad contrasted button in snackbar

Don't

Example of snackbar with dismiss button

Caution

Example of snackbar with optional action button

Do

Frequency

Only one snackbar must be displayed at a time.

When to use Snackbar ?

Use a snackbar for short, non-critical feedback after a user action.

Good use cases:

  • Confirming an action
  • Showing a quick status update
  • Providing a simple optional action

Key idea: Snackbars are for feedback, not for decisions.

When NOT to use a snackbar ?

Avoid using a snackbar when the message is important or requires attention.

Don’t use it for:

  • Errors that block the user
  • Important warnings
  • Long or complex messages
  • Actions that require a decision

Use modals, alerts, or inline messages instead.

Why use a snackbar ?

  • Keeps the experience smooth and non-disruptive
  • Gives users instant feedback
  • Does not interrupt the user flow

New Design UI/UX

Snackbar

Snackbars provide brief messages about the processes at the bottom of the screen.