

Every state


default


focus


open


filled


near-limit


free-wrap


no-wrap
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| id | string | "gift" | Base id for the switch, wrap box and message. |
| title | string | "This order is a gift" | The switch's label. |
| description | string | "We leave the prices off the packing slip." | Under the switch. |
| defaultGift | boolean | false | Start switched on. |
| wrapPrice | number | null | 350 | Gift wrap price in minor units; 0 is free. Null: no wrap offered. |
| wrapLabel | string | "Gift wrap" | Wrap checkbox label. |
| wrapDescription | string | "Recycled kraft paper and a cotton ribbon." | Under the wrap label. |
| defaultWrap | boolean | false | Start with wrap chosen. |
| messageLabel | string | "Message on the card (optional)" | Message field label. |
| defaultMessage | string | "" | Start with a message. |
| maxLength | number | 200 | Characters the card holds. |
| currency | string | "EUR" | ISO 4217 code. |
| locale | string | "en-IE" | Formats the wrap price. |
| onChange | (choice: { gift; wrap; message }) => void | – | Called on every change. |
| className | string | – | Extra classes on the card. |
More commerce parts
All 19commerce-09 is in UI ProGet UI Pro, €199


