> ## Documentation Index
> Fetch the complete documentation index at: https://docs.evidence.dev/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

**value** `string | number` *required*

Value of the option

**label** `string`

Label text displayed in the option

**fmt** `string`

Format string to associate with this option (e.g., "usd" or "pct1")

## Allowed Parents

* [dropdown](https://docs.evidence.dev/components/dropdown.md)
* [button\_group](https://docs.evidence.dev/components/button_group.md)
* [input\_tabs](https://docs.evidence.dev/components/input_tabs.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.