Skip to content

@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 ​

ParameterType
{ value, onChange, onApply, applied, onRemove, error, busy, disabled, labels, className }PromoCodeInputProps

Returns ​

ReactElement

Apache-2.0 · Headless engine, provider adapters and runnable examples.