# Snackbar

## Overview <a href="#id-101ca4" id="id-101ca4"></a>

<figure><img src="/files/XGIn6W4PBgFBNqiC1nhP" alt=""><figcaption></figcaption></figure>

Snackbars inform users when a backend action is done.\
They pop up briefly at the bottom of the screen, explaining the outcome without being too intrusive.

### When to use ?

Use snackbars to quickly share results, whether good or bad. \
\&#xNAN;*For example: 'Item added' or 'Item deleted'*

Snackbar should not be used to display critical information; use [alerts](/design/components/feedback/alerts.md) instead.\
\&#xNAN;*For example: 'You cannot perform this action because your profile has not been verified'*

## Design guidelines

Snackbars can only have one [button](/design/components/actions/buttons.md).

{% hint style="info" %}
**Prototyping a Snackbar on Figma for designers**<br>

* Trigger : onClick **OR** onDelay - 50ms
* Animation type : Custom Spring
* Duration: 300ms
  {% endhint %}

## Content <a href="#id-0969f1" id="id-0969f1"></a>

<figure><img src="/files/qZJhWaCYIqlQlx2DNQKo" alt="" width="563"><figcaption></figcaption></figure>

**Keep it short**

Snackbars are visible for 5 seconds, users won’t have time to read a long sentence. If you need more than one sentence consider using another component.

**Use simple words**

Use everyday language and generic terms as much as possible, it’ll be easier to reuse.

**Capitalize the first word, no period**

{% hint style="info" %}
**Template**: Object + verb+ED
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://design.mirakl.com/design/components/feedback/snackbar.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
