ButtonClient interface

ButtonClient is the interface returned by revolutId.initialise() for managing authentication buttons.

Methods

mount(container, params?)

Mounts Revolut ID button to a DOM element.

Parameters:

  • container: HTMLElement - DOM element to mount the button to
  • params?: ButtonStyle - Optional button styling configuration

Returns: ButtonClient - returns self for method chaining

unmount()

Removes mounted Revolut ID button from the DOM.

Returns: void

Button styling

For complete button styling options and parameters, see ButtonStyle API reference.

Was this page helpful?