# Variant metafield

> The values of `variant-metafield` inside `smootify-product` or `smootify-variant`.

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

## Where it can go

- **Inside any of:** [`smootify-product`](https://www.smootify.io/docs/reference/elements/smootify-product), [`smootify-variant`](https://www.smootify.io/docs/reference/elements/smootify-variant).

## Values

| Attribute and value | What it is | Notes |
|---|---|---|
| `variant-metafield="key, like material"` | Value | on text, rich, container, link, button, image, video |
| `namespace="custom"` | Namespace | on any; with [variant-metafield] |
| `data-attr="href"` | Into an attribute | on any; with [variant-metafield] |
| `property="--metafield-color"` | Color variable | on any; with [variant-metafield] |
