Skip to content
Sticky buy bar, light
Light
Sticky buy bar, dark
Dark

Every state

  • Sticky buy bar, default, light
    Sticky buy bar, default, dark

    default

  • Sticky buy bar, hover, light
    Sticky buy bar, hover, dark

    hover

  • Sticky buy bar, focus, light
    Sticky buy bar, focus, dark

    focus

  • Sticky buy bar, adding, light
    Sticky buy bar, adding, dark

    adding

  • Sticky buy bar, added, light
    Sticky buy bar, added, dark

    added

  • Sticky buy bar, sale, light
    Sticky buy bar, sale, dark

    sale

  • Sticky buy bar, sold-out, light
    Sticky buy bar, sold-out, dark

    sold-out

  • Sticky buy bar, long-name, light
    Sticky buy bar, long-name, dark

    long-name

Props

PropTypeDefaultWhat it does
namestring"Speckled jug"Product name.
variantstring | null"Speckled oat · 1 litre"The chosen variant on one line. Null hides it.
image{ src; alt; width; height; fit? }–Small photo; fit "cover" or "contain".
pricenumber3800In minor units.
compareAtPricenumber | nullnullThe price before a sale. Null: no sale.
soldOutbooleanfalseA disabled button that says it can't be bought.
addedbooleanfalseStart in the added state (for previews).
pendingbooleanfalseStart in the adding state (for previews).
addLabelstring"Add to cart"Button text.
soldOutLabelstring"Sold out"Button text when sold out.
cartHrefstring | null"/cart"Once added the button becomes this link. Null: it just says Added.
onAdd() => Promise<void> | void–Called on add; the button waits for it.
currencystring"EUR"ISO 4217 code.
localestring"en-IE"Formats the price.
classNamestring–Sticks to the bottom by default (sticky bottom-0); pass fixed inset-x-0 bottom-0 or top-0 to change where.

More commerce parts

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