# Select

{% hint style="success" %}
Supports responsive values
{% endhint %}

Displays a select box, also known as a dropdown menu. A select box can be responsive or non-responsive and has two or more items to choose from.

#### Property Schema

<table><thead><tr><th width="156">Key</th><th width="110">Value</th><th>Notes</th></tr></thead><tbody><tr><td><code>title</code></td><td>string</td><td>See <a href="/pages/wBAWSwX4UnqJDum9IFDU">Title</a> for more information</td></tr><tr><td><code>id</code></td><td>string</td><td>See <a href="/pages/y8S3OLCoczMOkIduZo41">ID</a> for more information</td></tr><tr><td><code>format</code></td><td>string</td><td>See <a href="/pages/Orps7VriXZwSBq45OFfG">Format</a> for more information</td></tr><tr><td><code>visible</code></td><td>string</td><td>See <a href="/pages/XV13f2YVdIu0uCRU9GQ1">Visible</a> for more information</td></tr><tr><td><code>enabled</code></td><td>string</td><td>See <a href="/pages/mgRItaSc43mn1uSVWHeG">Enabled</a> for more information</td></tr><tr><td><code>responsive</code></td><td>boolean</td><td>See <a href="/pages/Zz9ZABXukSzgheIMbfVP">Responsive</a> for more information, default: true</td></tr><tr><td><code>select</code></td><td>object</td><td>See <a href="#select-schema">Select Schema</a> below</td></tr></tbody></table>

#### Select Schema

<table><thead><tr><th width="156">Key</th><th width="110">Value</th><th>Notes</th></tr></thead><tbody><tr><td><code>default</code></td><td>string</td><td>Value of the default item to be selected</td></tr><tr><td><code>items</code></td><td>array</td><td>See <a href="#item-schema">Item Schema</a> below</td></tr></tbody></table>

#### Item Schema

<table><thead><tr><th width="156">Key</th><th width="110">Value</th><th>Notes</th></tr></thead><tbody><tr><td><code>title</code></td><td>string</td><td>The item title to be displayed in the dropdown</td></tr><tr><td><code>value</code></td><td>string</td><td>The value to be returned</td></tr></tbody></table>

#### Return Value

The returned value is dependent on the responsive setting and either returns a string of tailwind classes or the raw value.

<table><thead><tr><th width="180">Responsive</th><th width="337">Return Value</th><th data-hidden></th></tr></thead><tbody><tr><td><code>true</code></td><td>string of tailwind classes</td><td>See <a href="/pages/wBAWSwX4UnqJDum9IFDU">Title</a> for more information</td></tr><tr><td><code>false</code></td><td>raw string value</td><td>See <a href="/pages/y8S3OLCoczMOkIduZo41">ID</a> for more information</td></tr></tbody></table>

#### Example

Below is an example of a responsive dropdown that returns Tailwind text size classes for a button label.

{% tabs %}
{% tab title="Control Example" %}

```json
{
  "title": "Button Text Size",
  "id": "buttonTextSize",
  "select": {
    "default": "text-base",
    "items": [{
      "value": "text-sm",
      "title": "Small"
    }, {
      "value": "text-base",
      "title": "Medium"
    }, {
      "value": "text-lg",
      "title": "Large"
    }]
  }
}
```

{% endtab %}

{% tab title="Group Example" %}

```json
{
  "groups": [{
    "title": "Button",
    "properties": [{
      "title": "Button Text Size",
      "id": "buttonTextSize",
      "select": {
        "default": "text-base",
        "items": [{
          "value": "text-sm",
          "title": "Small"
        }, {
          "value": "text-base",
          "title": "Medium"
        }, {
          "value": "text-lg",
          "title": "Large"
        }]
      }
    }]
  }]
}
```

{% endtab %}
{% endtabs %}


---

# 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.realmacsoftware.com/elements-docs/elements-language/component/properties-json/ui-controls/select.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.
