Components

Snackbar

A component that temporarily appears at the bottom of the screen to guide status or results.

FigmaReactiOSAndroid
Snackbar cover image

Anatomy

Composed of Container, Text, Prefix Icon, Action.

Snackbar component is composed of text and container, and can display Prefix Icon and Action as needed.

Properties

Variant

Variant Property

Snackbar component provides three types: Default for basic messaging, Positive for completion or success messages, and Critical for error or failure messages.

Action Property

Action Property

Can display auxiliary Action composed of Text.

Guidelines

Using Snackbar

Snackbar usage example

Snackbar is a component that provides concise feedback through text.

Can be used for notifying completion of background tasks like saving/uploading/syncing, or guiding user actions just performed. Also provides auxiliary actions like 'undo' that are valid for short periods.

Snackbar should only be used to share low-severity status, and should be avoided in these situations:

Situations to avoidAlternative
Important choices requiring user decisionBottom Sheet, Alert Dialog
Warning that must be continuously displayedPage Banner, Callout
Multi-step guidance or long textHelp Bubble, Callout

Snackbar position and layout

Snackbar position and layout

Snackbar is positioned at center bottom by default and includes margin in the component itself. Must consider OS safe area when positioning.

Snackbar position and layout

When Floating Action Button exists on screen and Snackbar appears, Snackbar is always displayed above Floating Action Button.

When text is long and wrapping occurs, icon and auxiliary button are center-aligned.

Snackbar maximum width example

Snackbar has maximum width specified, and if screen width exceeds it, positioned at screen center.

Writing content

Writing concisely

Example showing Snackbar content as 'Post saved'
Do
Delivers the outcome briefly and clearly.
Example showing Snackbar content as 'The post save process has been completed'
Don’t
Long, system-oriented phrasing that isn't easy to grasp at a glance.

Write only the core of the message, briefly. A noun + verb format that shows the result of the user's action first is easier to understand at a glance.

Whether to add a period depends on the number of sentences

Example showing Snackbar content as 'Order canceled. Refund will be processed within 3 days.'
Do
With two sentences, add a period to every sentence.
Example showing Snackbar content as 'Order canceled Refund will be processed within 3 days'
Don’t
Two sentences with no periods are hard to read.

Omit the period for a single sentence, but add a period to the end of every sentence when there are two.

Phrasing things positively

Example showing Snackbar content as 'Upload complete'
Do
Makes clear right away what happened.
Example showing Snackbar content as 'Upload did not fail'
Don’t
A double negative requires interpreting the result twice.

Clear, positive phrasing prevents confusion. Prefer a direct phrasing like "Upload complete" over a double negative like "Did not fail."

Snackbar behavior

Snackbar behavior

By default, a Snackbar is shown for 4 seconds. If the message content is long, adjust the display duration so users have enough time to read it.

Snackbar behavior

Example showing multiple Snackbars displayed at once
Don’t
Do not show more than one Snackbar at a time.

If the user touches and holds the Snackbar, the timer pauses. This lets the Snackbar stay on screen while the user wants more time to read the message.

Only one Snackbar is shown on screen at a time. When a new Snackbar occurs, it is automatically added to a queue and shown in sequence once the currently displayed item disappears.

Using actions

Example showing a Snackbar Action labeled 'Undo'

Example showing a Snackbar Action labeled 'OK'
Don’t
Use a word that clearly names a specific action.

Up to 1 secondary action button can be shown on a Snackbar. Keeping it to 1-2 words is recommended so users can quickly grasp it.

For the action label, use a word that names a specific action clearly, such as 'Undo' or 'View list', rather than a generic, ambiguous word like 'Cancel' or 'OK'.

When an important change occurs, such as adding or deleting content, it's good to show an 'Undo' option alongside it so users can easily revert it.

Specification

base

StateSlotPropertyValue
enabledregionpaddingX
paddingY
offsetDuration
offsetTimingFunction
rootcolor
cornerRadius
minHeight
maxWidth
paddingX
paddingY
enterOpacity
enterScale
enterDuration
enterTimingFunction
exitOpacity
exitScale
exitDuration
exitTimingFunction
contentpaddingX
gap
messagecolor
fontSize
lineHeight
fontWeight
prefixIconsize
paddingRight
actionButtontargetPaddingX
targetMinHeight
color
fontSize
lineHeight
fontWeight
pressedactionButtonscaleScope

variant=default

StateSlotPropertyValue

variant=positive

StateSlotPropertyValue
enabledprefixIconcolor

variant=critical

StateSlotPropertyValue
enabledprefixIconcolor

Table of contents