Skip to content

BaseElementOptions

Options shared by every element. Events are not options: listen with element.on("change", handler).

export interface BaseElementOptions
NameTypeDescription
ariaDescribedBy?stringId of an element in your page that describes this one, such as your own error message.
ariaLabel?stringAccessible name for the element.
className?stringA class added to the element’s container, beside pesepay-element.
disabled?booleanDisables input. Toggle it with update({ disabled }).
placeholder?stringPlaceholder text: the card number’s, or the scan element’s before it has a code.
theme?PesepayThemeTheme for this element, over the group’s and the config’s.