> ## Documentation Index
> Fetch the complete documentation index at: https://docs.evidence.studio/llms.txt
> Use this file to discover all available pages before exploring further.

# Option

> Add an option to a dropdown or button_group component

```liquid theme={null}
{% dropdown id="category" label="Category" %}
    {% option value="electronics" label="Electronics" /%}
    {% option value="clothing" label="Clothing" /%}
    {% option value="home" label="Home & Garden" /%}
{% /dropdown %}
```

## Examples

### In a Dropdown

```liquid theme={null}
{% dropdown id="category" label="Category" %}
    {% option value="electronics" label="Electronics" /%}
    {% option value="clothing" label="Clothing" /%}
    {% option value="home" label="Home & Garden" /%}
{% /dropdown %}
```

### In a Button Group

```liquid theme={null}
{% button_group id="metric" label="Metric" %}
    {% option value="revenue" label="Revenue" fmt="usd" /%}
    {% option value="quantity" label="Quantity" fmt="num0" /%}
    {% option value="margin" label="Margin" fmt="pct1" /%}
{% /button_group %}
```

## Attributes

<ResponseField name="value" type="string | number" required>
  Value of the option
</ResponseField>

<ResponseField name="label" type="string">
  Label text displayed in the option
</ResponseField>

<ResponseField name="fmt" type="string">
  Format string to associate with this option (e.g., "usd" or "pct1")
</ResponseField>

## Allowed Parents

* [dropdown](/components/dropdown)
* [button\_group](/components/button_group)
* [input\_tabs](/components/input_tabs)
