Skip to content
Gift option, light
Light
Gift option, dark
Dark

Every state

  • Gift option, default, light
    Gift option, default, dark

    default

  • Gift option, focus, light
    Gift option, focus, dark

    focus

  • Gift option, open, light
    Gift option, open, dark

    open

  • Gift option, filled, light
    Gift option, filled, dark

    filled

  • Gift option, near-limit, light
    Gift option, near-limit, dark

    near-limit

  • Gift option, free-wrap, light
    Gift option, free-wrap, dark

    free-wrap

  • Gift option, no-wrap, light
    Gift option, no-wrap, dark

    no-wrap

Props

PropTypeDefaultWhat it does
idstring"gift"Base id for the switch, wrap box and message.
titlestring"This order is a gift"The switch's label.
descriptionstring"We leave the prices off the packing slip."Under the switch.
defaultGiftbooleanfalseStart switched on.
wrapPricenumber | null350Gift wrap price in minor units; 0 is free. Null: no wrap offered.
wrapLabelstring"Gift wrap"Wrap checkbox label.
wrapDescriptionstring"Recycled kraft paper and a cotton ribbon."Under the wrap label.
defaultWrapbooleanfalseStart with wrap chosen.
messageLabelstring"Message on the card (optional)"Message field label.
defaultMessagestring""Start with a message.
maxLengthnumber200Characters the card holds.
currencystring"EUR"ISO 4217 code.
localestring"en-IE"Formats the wrap price.
onChange(choice: { gift; wrap; message }) => void–Called on every change.
classNamestring–Extra classes on the card.

More commerce parts

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