Skip to content

ElementsProps

Props for <Elements>.

export interface ElementsProps
NameTypeDescription
children?ReactNodeThe element components, and anything that pays with them.
options?ElementsOptionsApplied to every element inside. A change is passed to elements.update().
pesepay?Pesepay | null | PromiseLike<Pesepay | null>What loadPesepay() returns: the promise itself, or the instance once it has resolved. Leave it out and Pesepay loads with the default options; pass loadPesepay({ ... }) to set any of them. Call loadPesepay() once, outside the component, so it is not loaded again. Fixed on first render: a different value later is ignored with a warning.