Skip to main content
Version: v2

@friendlycaptcha/sdk > FRCWidgetStateChangeEventData > mode

FRCWidgetStateChangeEventData.mode property

The WidgetMode returned from the API. Smart Mode intelligently chooses between One-click Mode ("interactive") and Zero-click Mode ("noninteractive"). The mode is configured in the Friendly Captcha dashboard.

Signature:

mode?: WidgetMode;

Remarks

The API chooses the mode during activation, meaning that the mode will not be available prior to the "activated" state. In other words, mode will be only be present for "activated", "requesting", "solving", "verifying", "completed", and "error". For other states, it will be undefined. See the widget lifecycle docs for more information.