Variant metafield
The values of `variant-metafield` inside `smootify-product` or `smootify-variant`.
On this page
Where it can go
- Inside any of:
smootify-product,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] |
data-format="table" | As a table | A JSON field shaped as {“headers”:[…],“rows”:[[…]]}: on a <table> the header cell, the row and the cell are copied; with divs mark them with table=head|row|cell. Hidden when empty or not that shape; on container; with [variant-metafield] |