ProductCard
A redeemable rewards-catalog product or merchant offer, with a favorite heart, a redeem CTA, and a click through to the product detail page. It renders two write phases and owns no read.
ProductCard
ProductCard presents one rewards-catalog product or merchant offer, with a favorite heart, a redeem CTA, and a click through to the product detail page. On the vertical tile the heart sits on the image's top-right corner, and the redeem CTA rises over the image's foot only while a pointer hovers or focus is inside, so a touch screen always shows it. The horizontal row keeps both in its action row. imageType frames the image: product photography, gift-card art on a padded frame, or a merchant logo in a white circle. The card never reads an image's pixels, so a host that wants either frame in the image's colour derives it from a same-origin image and passes it in. Without one the frame takes the sunken surface. The host owns both write phases and hands each one back resolved. The card never advances a phase, so a press changes nothing on screen until a new state arrives.
Interaction Phases
State space: effect. 1 of 5 covered phases has a Figma frame; 4 have not been drawn.
| Phase | Space | What it renders | Figma frame |
|---|---|---|---|
idle | effect | No mutation in flight. | 1073:3729 |
pending | effect | Requested, awaiting an answer. Where pendingValue renders. | MISSING |
confirmed | effect | The host committed it, and said so. | MISSING |
rejected | effect | The host refused it, with a class and a reason. | MISSING |
unacknowledged | effect | No answer arrived inside the bound. The absence of an answer, not a refusal. | MISSING |
Politeness is handed down — the resolved state chooses it and this item renders it.
Storybook
Loading
Props
Prop
Type
Also takes the attributes of the element it renders.
Tokens
Derived from the component source at docs-generation time — these are the --augds-* variables it reads. Re-theme the colour slots by constructing a partner DesignSystemTheme and wrapping the consumer subtree in <ThemeProvider>, never by hard-coding values.
--augds-border-default--augds-foreground-primary--augds-foreground-secondary--augds-foreground-tertiary--augds-interaction-focus-ring--augds-radius-primitive-16--augds-status-info-bg--augds-status-info-fg--augds-status-success-fg--augds-status-warning-fg--augds-surface-surface-1
Source
src/components/ui/product-card/product-card.tsx