> For the complete documentation index, see [llms.txt](https://help.vectary.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.vectary.com/documentation/3d-configurator/floating-ui/container.md).

# Container

The **Container** is a structural element used for grouping other UI elements, allowing for flexible and customizable layouts. Containers can be nested within each other to create complex UI structures.

<figure><img src="https://2973737105-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAXNLyKVZ2tvtyDr8sVES%2Fuploads%2FwVBd4K73qAUmyqA7rTvm%2FContainer.gif?alt=media&amp;token=98d82ea3-9763-409d-b0d2-2e64d6e38aae" alt="" width="259"><figcaption></figcaption></figure>

**Positioning & Layout**

* **Stacking** — Defines the stacking direction of the elements inside the Container.
* **Align elements** — Controls the alignment of elements within the Container.
* **Spacing** — Adjusts the spacing between elements inside the Container.

**Size & Layout**

* **W** — Defines the width of the Container.

* **H** — Defines the height of the Container.

* **Fixed** — Sets a fixed size in pixels.

* **Fill** — Adapts the size based on the parent element (for Containers, the parent element is the **Floating UI**).

* **Hug** — Adjusts the size according to the largest element inside it (available only for **Floating UI** and **Container** elements).

* **Padding** — Defines the horizontal and vertical padding inside the Container.

* **Corner radius** — Sets the border rounding of the Container.

#### Fill

* **Default color** — The background color of the Container. If disabled, the Container will be transparent.
* **Hover color** — The background color when hovering over the Container.

#### Stroke

* **Thickness** — Defines the stroke thickness of the Container.
* **Default color** — The stroke color of the Container. If disabled, the stroke will be transparent.
* **Hover color** — The stroke color when hovering over the Container.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.vectary.com/documentation/3d-configurator/floating-ui/container.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
