vue-recaptcha ============= [![Greenkeeper badge](https://badges.greenkeeper.io/DanSnow/vue-recaptcha.svg)](https://greenkeeper.io/) [![devDependencies Status](https://david-dm.org/DanSnow/vue-recaptcha/dev-status.svg)](https://david-dm.org/DanSnow/vue-recaptcha?type=dev) [![peerDependencies Status](https://david-dm.org/DanSnow/vue-recaptcha/peer-status.svg)](https://david-dm.org/DanSnow/vue-recaptcha?type=peer) [![CircleCI](https://circleci.com/gh/DanSnow/vue-recaptcha.svg?style=shield)](https://circleci.com/gh/DanSnow/vue-recaptcha) [![npm version](https://img.shields.io/npm/v/vue-recaptcha.svg?style=flat)](https://www.npmjs.com/package/vue-recaptcha) [![npm downloads](https://img.shields.io/npm/dm/vue-recaptcha.svg?style=flat)](https://www.npmjs.com/package/vue-recaptcha) Buy Me A Coffee 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 `