

Every state


default


focus


low-stock


sold-out


on-sale


disabled
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| id | string | "variant-size" | Id of the select; the summary id hangs off it. |
| label | string | "Size" | The option's name. |
| variants | { id; label; price; compareAtPrice?; stock; restock? }[] | – | The options in order. Prices in minor units; stock 0 is sold out. |
| value | string | "jug-1000" | Id of the chosen variant; empty picks the first in stock. |
| lowAt | number | 3 | At or below this the option says how many are left. |
| disabled | boolean | false | The product can't be bought now; the select is off. |
| currency | string | "EUR" | ISO 4217 code. |
| locale | string | "en-IE" | Formats the prices. |
| onChange | (variant) => void | – | Called with the chosen variant. |
| className | string | – | Extra classes on the wrapper. |
More commerce parts
All 19commerce-17 is in UI ProGet UI Pro, €199


