Skip to main content

Function: ActionCode()

ActionCode(rawProps): Element

Defined in: components/ActionCode.tsx:57

Action-code (coupon) input for the shopping cart: applies or removes a promotional code and surfaces a friendly error message on failure.

Parameters

rawProps

ActionCodeProps

Returns

Element

Remarks

Uses useCart for the apply/remove cart operations.