Skip to content
Variant selector, light
Light
Variant selector, dark
Dark

Every state

  • Variant selector, default, light
    Variant selector, default, dark

    default

  • Variant selector, focus, light
    Variant selector, focus, dark

    focus

  • Variant selector, low-stock, light
    Variant selector, low-stock, dark

    low-stock

  • Variant selector, sold-out, light
    Variant selector, sold-out, dark

    sold-out

  • Variant selector, on-sale, light
    Variant selector, on-sale, dark

    on-sale

  • Variant selector, disabled, light
    Variant selector, disabled, dark

    disabled

Props

PropTypeDefaultWhat it does
idstring"variant-size"Id of the select; the summary id hangs off it.
labelstring"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.
valuestring"jug-1000"Id of the chosen variant; empty picks the first in stock.
lowAtnumber3At or below this the option says how many are left.
disabledbooleanfalseThe product can't be bought now; the select is off.
currencystring"EUR"ISO 4217 code.
localestring"en-IE"Formats the prices.
onChange(variant) => void–Called with the chosen variant.
classNamestring–Extra classes on the wrapper.

More commerce parts

All 19
commerce-17 is in UI ProGet UI Pro, €199

Preview

Open the page
In UI Pro: get it, €199 once

With every block and theme. 400+ buyers since 2020. Plans