Skip to content

ElementEventProps

An element’s event callbacks, one prop per event.

export interface ElementEventProps<Events extends ElementEventMap>
NameTypeDescription
onBlur?(event: Events["blur"]) => voidA field lost focus.
onChange?(event: Events["change"]) => voidThe customer changed a value. A card’s event carries brand.
onEscape?(event: Events["escape"]) => voidThe customer pressed Escape.
onFocus?(event: Events["focus"]) => voidA field gained focus.
onLoadError?(event: Events["loaderror"]) => voidThe element could not load. loaderror in @pesepay/js.
onReady?(event: Events["ready"]) => voidThe element has rendered.