> 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/variants-ui.md).

# Variants (UI)

The **Variants** UI element allows to switch between objects contained within a [Variants tool](/documentation/3d-configurator/variants.md). To use this feature, first, add a **Variants** tool to the project, then assign it as the source in the **Variants UI element** settings.

Object switching within **Variants** group can also be configured using the [Variants interaction](/documentation/3d-configurator/interactions/actions/variants.md) for automated transitions.

#### Settings

Variants (UI) can be displayed in two styles:<br>

* **Dropdown** — a standard selection menu.

* **Swatch** — a visual selection with customizable thumbnails.

* **Auto-hide** — Hides the UI element when the object is hidden.

**Additional settings for Swatch style:**<br>

* **Display name** — Show the selected object name.
* **Alignment** — Set thumbnail alignment.
* **Spacing** — Define the spacing between thumbnails.
* **Swatch size** — Set the thumbnail size.
* **Swatches** — Upload a custom design for each variant.\
  \
  ![](https://2973737105-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAXNLyKVZ2tvtyDr8sVES%2Fuploads%2F8MDCqE4zpz4N3dr4jgvG%2Fimage.png?alt=media\&token=0cfc50af-c9bb-45f7-8950-b6ee293d0dd1)

#### Layout

* **W** — Defines the width of the **Variants** element.
* **H** — Defines the height of the **Variants** element.<br>
* **Fixed** — Sets a fixed size in pixels.
* **Fill** — Adjusts the size based on the parent element (**Floating UI** or **Container**).<br>
* **Padding** — Sets vertical and horizontal padding within the element.
* **Corner radius** — Defines the rounding radius for the dropdown field and swatches.<br>

#### Stroke

* **Thickness** — Defines the stroke thickness for the dropdown field.
* **Default color** — Sets the default stroke color (if disabled, the stroke will be transparent).
* **Hover color** — Changes the stroke color on hover.


---

# 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/variants-ui.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.
