This example demonstrates how to use Procaptcha in invisible Puzzle mode with explicit rendering. The puzzle overlay appears after the form is submitted.
This example demonstrates how to use Procaptcha in puzzle mode with explicit rendering:
// Import the render function
import { render } from "%VITE_BUNDLE_URL%"
// Render CAPTCHA
const widgetId = render(document.getElementById('procaptcha-container'), {
siteKey: import.meta.env.PROSOPO_SITE_KEY_PUZZLE,
callback: handleCaptchaResponse,
"failed-callback": handleCaptchaFailed,
size: "invisible"
});