vue-recaptcha
Google ReCAPTCHA component for vue.
Install
NPM
CDN
Usage
Get started
Place this in head to load reCAPTCHA:
With `onload` callback, it will notify us when the api is ready for use.
Then include vue-recaptcha
in your app.
Bind Challenge to Button
Notice: You could only place one element as vue-recaptcha
child.
For more information, please reference to example
API
Props
- sitekey (required)
ReCAPTCHA site key - theme (optional)
The color theme for reCAPTCHA - type (optional)
The type of reCAPTCHA - size (optional)
The size of reCAPTCHA - tabindex (optional)
The tabindex of reCAPTCHA - badge (optional) (Invisible ReCAPTCHA only)
Position of the reCAPTCHA badge
Methods
- reset
Reset reCAPTCHA instance - execute
Invoke reCAPTCHA challenge
Events
- verify(response)
Emit on reCAPTCHA verified
response
is the successful reCAPTCHA response - expired()
Emit on reCAPTCHA expired - render(id)
Emit on reCAPTCHA mounted on DOM
id
is the widget id of the component