<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@friendlycaptcha/sdk](./sdk.md) &gt; [FRCWidgetStateChangeEventData](./sdk.frcwidgetstatechangeeventdata.md) &gt; [mode](./sdk.frcwidgetstatechangeeventdata.mode.md)

## 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:**

```typescript
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\](../lifecycle) docs for more information.

