Snackbar
Last updated Sep 02, 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 dynamically choose 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.
Here are the variations available for longer messages:
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.