<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@friendlycaptcha/sdk](./sdk.md) &gt; [FriendlyCaptchaSDK](./sdk.friendlycaptchasdk.md) &gt; [createWidget](./sdk.friendlycaptchasdk.createwidget.md)

## FriendlyCaptchaSDK.createWidget() method

Creates a Friendly Captcha widget with given options under given HTML element.

**Signature:**

```typescript
createWidget(opts: CreateWidgetOptions): WidgetHandle;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

opts


</td><td>

[CreateWidgetOptions](./sdk.createwidgetoptions.md)


</td><td>


</td></tr>
</tbody></table>

**Returns:**

[WidgetHandle](./sdk.widgethandle.md)

