react-recaptcha-v2
v1.0.2
Published
Google ReCaptcha component for react
Downloads
20
Readme
react-recaptcha-v2
install with npm: npm i react-recaptcha-v2 --save
import ReCaptcha from "react-recaptcha-v2"
<ReCaptcha key="your recaptcha key" />
props
<ReCaptcha
key="your recaptcha key" // required, recaptcha key
locale="ru" // recaptcha language, default "en"
name="any_unic_recaptcha_name" // name used to reset recaptcha
onChange={recaptchaValue => {console.log(recaptchaValue)}} // change handler
theme={"dark"} // or "light", "light" is default
size: {"normal"} // or "compact", "normal" is default
tabindex: 0, // 0 is default
className: "recaptcha-class", // class of recatpcha container
/>
reset recaptcha
<ReCaptcha
key="00001111"
name="recaptchaName"
/>
***
Recaptcha.reset("recaptchaName")
update locale
<ReCaptcha
key="00001111"
/>
***
Recaptcha.updateLocale("ru")