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

Every state

  • Compare toggle, default, light
    Compare toggle, default, dark

    default

  • Compare toggle, hover, light
    Compare toggle, hover, dark

    hover

  • Compare toggle, focus, light
    Compare toggle, focus, dark

    focus

  • Compare toggle, checked, light
    Compare toggle, checked, dark

    checked

  • Compare toggle, just-added, light
    Compare toggle, just-added, dark

    just-added

  • Compare toggle, empty, light
    Compare toggle, empty, dark

    empty

  • Compare toggle, limit-reached, light
    Compare toggle, limit-reached, dark

    limit-reached

Props

PropTypeDefaultWhat it does
productNamestring"Speckled jug"Named in the accessible name and the messages.
checkedbooleanfalseStart with this product in the tray.
countnumber2Other products already in the tray, not counting this one.
maxnumber4The most the tray holds.
labelstring"Compare"Checkbox label.
compareHrefstring | null"/compare"Link to the comparison with the tray count. Null hides it.
compareLabelstring"View comparison"The link's text.
onToggle(checked: boolean) => void–Called with the new value.
classNamestring–Extra classes on the wrapper.

More commerce parts

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