# 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="/files/dynInJxYKqCWeJvxfIRG" 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: 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.vectary.com/documentation/3d-configurator/floating-ui/container.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.
