# Option metafield

> The values of `option-metafield` inside `variant-swatches` or `variant-dropdown` or `variant-popover` or `addon-swatches` or `smootify-product [product="option-values"]`.

Status: Ready (Smootify 2.0)  
URL: https://www.smootify.io/docs/astro/reference/attributes/option-metafield  
Updated: 2026-10-21

## Where it can go

- **Inside any of:** [`variant-swatches`](https://www.smootify.io/docs/astro/reference/elements/variant-swatches), [`variant-dropdown`](https://www.smootify.io/docs/astro/reference/elements/variant-dropdown), [`variant-popover`](https://www.smootify.io/docs/astro/reference/elements/variant-popover), [`addon-swatches`](https://www.smootify.io/docs/astro/reference/elements/addon-swatches), `smootify-product [product="option-values"]`.

## Values

| Attribute and value | What it is | Notes |
|---|---|---|
| `option-metafield="field of the option"` | Value | on text, image, container |
| `namespace="custom"` | Namespace | on any; with [option-metafield] |
| `property="--metafield-color"` | Color variable | on any; with [option-metafield] |
