@checkout-kit/ui / PromoCodeInput
Variable: PromoCodeInput
ts
const PromoCodeInput: ({ value, onChange, onApply, applied, onRemove, error, busy, disabled, labels, className }) => ReactElement;A code and the button that redeems it. Not a <form> - it sits inside the checkout's own, and nested forms are invalid HTML - so Enter is handled directly.
Parameters
| Parameter | Type |
|---|---|
{ value, onChange, onApply, applied, onRemove, error, busy, disabled, labels, className } | PromoCodeInputProps |
Returns
ReactElement