Skip to content
Wishlist toggle, light
Light
Wishlist toggle, dark
Dark

Every state

  • Wishlist toggle, default, light
    Wishlist toggle, default, dark

    default

  • Wishlist toggle, hover, light
    Wishlist toggle, hover, dark

    hover

  • Wishlist toggle, focus, light
    Wishlist toggle, focus, dark

    focus

  • Wishlist toggle, saved, light
    Wishlist toggle, saved, dark

    saved

  • Wishlist toggle, just-saved, light
    Wishlist toggle, just-saved, dark

    just-saved

  • Wishlist toggle, failed, light
    Wishlist toggle, failed, dark

    failed

  • Wishlist toggle, no-count, light
    Wishlist toggle, no-count, dark

    no-count

  • Wishlist toggle, compact-count, light
    Wishlist toggle, compact-count, dark

    compact-count

Props

PropTypeDefaultWhat it does
productNamestring"Speckled mug"Named in the button's accessible name.
savedbooleanfalseStart saved.
countnumber | null1284How many people saved it. Null hides the count.
saveLabelstring"Save"Text while not saved.
savedLabelstring"Saved"Text while saved.
wishlistHrefstring | null"/wishlist"Linked in the line after saving. Null: no line.
localestring"en-IE"Formats the count; 10,000 and up are compact.
onToggle(saved: boolean) => Promise<void> | void–Called with the new value; reject to put the heart back.
classNamestring–Extra classes on the wrapper.

More commerce parts

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