# Setting up a container on Adobe XD

## 🏗 How do I create a container? <a href="#how-do-i-create-a-container" id="how-do-i-create-a-container"></a>

&#x20;   1\. Select the **Rectangle** tool.

![](/files/HLdYsP0Fv6NKjoA4ONvM)

&#x20;  2\. Start from the left side of the app page frame and drag to the right side of the page, creating a rectangle that covers the area of the UI elements for the container.

{% hint style="info" %}
Rename it to "**area**" (if you'd like) to identify the purpose of the rectangle. The rectangle is used to create padding around the elements. Otherwise, the first element of the group will jump to the top left corner of the page.
{% endhint %}

![](/files/aOw3bXiOidSTnNCMTW1M)

&#x20;  3\. **Group** `command/ctrl + G` the elements and the rectangle "area" together.

&#x20;  4\. Add the Tag `[container]`to the name of the group layer.

![](/files/EWYO9Euz3ID9YtIhMhgL)

In addition to containers, you need to create the same "area" for any elements that require an interaction area bigger than the element itself. (i.e. a back arrow icon on its own might be too small for the user to tap).


---

# 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.bravostudio.app/set-up-design/setting-up-your-design-file/the-container/setting-up-a-container-on-adobe-xd.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.
