# UI Bakery variables

**UI Bakery variables** serve as the glue that binds both Action data to UI components/Actions and Component values to Actions/other Components. UI Bakery variables are always wrapped with \
`{{ }}` to distinguish them from JavaScript variables.

You can use component values, action results, state variables, page parameters, etc. as variables.

![](/files/9gwlLfy9E7N1spvsEUlQ)

Variables can be used inside **Component** and **Action properties**. For non-text component properties, you can switch to the `JS` mode to use variables.&#x20;

To start searching for a variable, you just need to type `{{` in the code or text field, and a variables selector will appear.

{% hint style="success" %}
Use **Option ⌥ + Esc** (Mac) or **Ctrl + Space** (Windows/Linux) as shortcuts to open the variables selector.
{% endhint %}

{% @arcade/embed flowId="hHQ1F8IyzfT3ditvOC9F" url="<https://app.arcade.software/share/hHQ1F8IyzfT3ditvOC9F>" %}


---

# 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://docs.uibakery.io/concepts/working-with-variables.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.
