google recaptcha

GoogleReCaptchaCheckbox

Pre-built checkbox component for v2 checkbox reCAPTCHA

<GoogleReCaptchaCheckbox action language size theme onChange onError onExpired />

Return

PropTypeRequiredDefaultDescription
actionstring--The action name for analytics
languagestring--The language for the reCAPTCHA widget
size'compact' | 'normal'-'normal'The size of the widget
theme'light' | 'dark'-'light'The color theme of the widget
onChange(token: string) => void--Callback function when verification is successful
onError() => void--Callback function when reCAPTCHA encounters an error
onExpired() => void--Callback function when the reCAPTCHA response expires

The component extends the standard div props

On this page