Skip to content
Add to cart stepper, light
Light
Add to cart stepper, dark
Dark

Every state

  • Add to cart stepper, default, light
    Add to cart stepper, default, dark

    default

  • Add to cart stepper, hover, light
    Add to cart stepper, hover, dark

    hover

  • Add to cart stepper, focus, light
    Add to cart stepper, focus, dark

    focus

  • Add to cart stepper, adding, light
    Add to cart stepper, adding, dark

    adding

  • Add to cart stepper, in-cart, light
    Add to cart stepper, in-cart, dark

    in-cart

  • Add to cart stepper, focus-stepper, light
    Add to cart stepper, focus-stepper, dark

    focus-stepper

  • Add to cart stepper, single, light
    Add to cart stepper, single, dark

    single

  • Add to cart stepper, at-max, light
    Add to cart stepper, at-max, dark

    at-max

  • Add to cart stepper, sold-out, light
    Add to cart stepper, sold-out, dark

    sold-out

Props

PropTypeDefaultWhat it does
productNamestring"Speckled mug"Named in the screen-reader labels.
quantitynumber0Units already in the cart; 0 shows the add button.
maxnumber6The most one order can take; plus stops there.
soldOutbooleanfalseA disabled button that says the product can't be bought.
pendingbooleanfalseStart in the adding state (for previews).
addLabelstring"Add to cart"Button text.
soldOutLabelstring"Sold out"Button text when sold out.
cartHrefstring | null"/cart"Link to the cart beside the count. Null hides it.
onChange(quantity: number) => Promise<void> | void–Called with the new quantity (0 = removed); the control waits for it, and a reject keeps the old quantity.
classNamestring–Extra classes on the wrapper.

More commerce parts

All 19
commerce-01 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