Documentation Index
Fetch the complete documentation index at: https://primer.io/docs/llms.txt
Use this file to discover all available pages before exploring further.
The button instance returned by a NativePaymentMethodManager’s createButton function.
render
(containerId: string, options: HeadlessButtonRenderOptions) => Promise<void>
Render the button inside a container with the given ID and options.Show HeadlessButtonRenderOptions
The style options for the button.
setDisabled
(disabled: boolean) => Promise<void>
Set the disabled state of the button.
Remove the button from the DOM.
Remove focus from the button.
addEventListener
(event: EventTypes, callback: EventListener) => void
Add an event listener to the button.
EventTypes
"blur" | "change" | "click" | "close" | "error" | "focus"