vue-recaptcha
=============
[](https://greenkeeper.io/)
[](https://david-dm.org/DanSnow/vue-recaptcha?type=dev)
[](https://david-dm.org/DanSnow/vue-recaptcha?type=peer)
[](https://circleci.com/gh/DanSnow/vue-recaptcha)
[](https://www.npmjs.com/package/vue-recaptcha)
[](https://www.npmjs.com/package/vue-recaptcha)
Description
-----------
**Notice:** The document on github is always reference to master branch. For stable version, please read the document at [NPM](https://www.npmjs.com/package/vue-recaptcha).
Google ReCAPTCHA component for vue.
If you like this package, please leave a star on github.
This version is for Vue 2.0. If you need Vue 1.x support please reference to [vue-v1.x][vue-v1.x].
### reCAPTCHA V3
**Notice**: This project currently not supporting reCAPTCHA v3.
- [Description](#description)
- [Install](#install)
- [NPM](#npm)
- [CDN](#cdn)
- [Usage](#usage)
- [Get started](#get-started)
- [Bind Challenge to Button](#bind-challenge-to-button)
- [Auto-load `
```
## Usage ##
### Get started ###
Place this in head to load reCAPTCHA:
```html
```
```
With `onload` callback, it will notify us when the api is ready for use.
```
Then include `vue-recaptcha` in your app.
```vue
```
### Bind Challenge to Button ###
```vue
```
**Notice:** You could only place one element as `vue-recaptcha` child.
For more information, please reference to [example](example)
### Auto-load `
```
## 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
- loadRecaptchaScript (optional)
If `loadRecaptchaScript` is set to `true`, vue-recaptcha will inject the required `