

Every state


default


hover


focus


checked


just-added


empty


limit-reached
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| productName | string | "Speckled jug" | Named in the accessible name and the messages. |
| checked | boolean | false | Start with this product in the tray. |
| count | number | 2 | Other products already in the tray, not counting this one. |
| max | number | 4 | The most the tray holds. |
| label | string | "Compare" | Checkbox label. |
| compareHref | string | null | "/compare" | Link to the comparison with the tray count. Null hides it. |
| compareLabel | string | "View comparison" | The link's text. |
| onToggle | (checked: boolean) => void | – | Called with the new value. |
| className | string | – | Extra classes on the wrapper. |
More commerce parts
All 19commerce-05 is in UI ProGet UI Pro, €199


