Snackbar

v2.0

Snackbars are temporary messages that provide immediate feedback about a user action. They communicate the success or failure of an action, with an optional button to revert a decision, correct a failure, or dismiss.

  • CSS
  • Marko
  • React

Considerations

Temporary

Snackbars appear and disappear after a set amount of time.

Brief

Snackbars are short and concise.

Responsive

Snackbars provide feedback about the processing of a user action.

Anatomy

Properties

Behavior

Screen sizes

Small

Snackbars appear at the bottom center of the screen on small screens.

A snackbar on a small screen. There is no tab bar, but the snackbar hovers comfortably above the bottom of the screen.
A snackbar on a small screen. It sits above the tab menu.

Medium and large

Snackbars are aligned bottom-center on larger screens.

A snackbar on a large screen. It is placed center bottom.

Best practices

Specs

Specs for snackbars. The top is a simple snackbar with a body and action. There is 16px of padding all around the container and on the left of the action. The bottom is a critical variant snackbar. It contains the same padding around the container, a 16px icon in the upper left, 12px between the icon and body, and the action is in the lower right corner.