# Snackbar

Using **Snackbar** , you could have feedback on  an operation. Snackbar  shows a brief message at the bottom of the screen, above all other elements. Only one can be displayed at a time. Snackbar disappear after user interaction.

Snackbar includes an event-block called AfterAction. It will be automatically triggered when Snackbar action is clicked. This block contains a parameter called "action". It can be used to determine type action that user selected. For example, we can use if-then-else, to check user's response as below:

![](/files/-LGqWj27wI0F2m0Q6hfb)

**Creating Snackbar.** You can create a Snackbar using the following block, in message you should add one-message and up to two actions. The message will appear on left-side and the actions will display on right side. If you want to have only one-action, just plug an empty text block into socket.

![](/files/-LGqET3RSH2sFggu8x3D)

**Opening Snackbar.** Use block below to determine if Snackbar is open or not

![](/files/-LGqFWPKdJqjoqOOe4IB)

**Closing Snackbar.** Use block below to force closing of Snackbar.&#x20;

![](/files/-LGqFmau7R-DKCPZdfge)

Image below shows how Snackbar looks when 2 actions are provided. Note: For this example, we used Snackbar.TextColor to change the default color:

![](/files/-LGqYn_tLmQWlshUTpOs)

![](/files/-LGqYQHvXeiQnd2yIS7w)


---

# 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://help.appybuilder.com/components/reference/effects/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.
