Skip to content

@checkout-kit/ui / ErrorText

Variable: ErrorText ​

ts
const ErrorText: ({ children, id, className }) => ReactElement | null;

The payment-level error, and the only alert on the page. Field errors are polite - see <Field> - so a decline interrupts and a typo does not.

Parameters ​

ParameterType
{ children, id, className }ErrorTextProps

Returns ​

ReactElement | null

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