Snackbar
Last updated Aug 20, 2019
A Snackbar is a temporary message that does not require user confirmation. It is useful to communicate feedback for user actions, and in keeping the user informed of system status.
Every Snackbar has a message and an optional action. We automatically determine if the message spans one or two lines, based on its length. Since we want messages to be concise, the single line spec should be most common.
There are certain cases where we push the button to a new line:
The height of the Snackbar is independent of its container—it only depends on the Snackbar contents. The width is always relative to the screen size.