Standalone

Smallest setup

One script and one element. Wrap it in a form when you are ready to send the token.

<script type="module" src="/static/captchaWidget.js"></script>
<captcha-widget name="captcha_token"></captcha-widget>