vue-recaptcha ============= [![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 3 and 2. ### reCAPTCHA V3 **Notice**: This project currently not supporting reCAPTCHA v3. - [vue-recaptcha](#vue-recaptcha) - [Description](#description) - [reCAPTCHA V3](#recaptcha-v3) - [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 ### Include `vue-recaptcha` in your app. ```vue ``` ### Manually call challenge ### ```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) ## 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` when set this to `true`, vue-recaptcha will inject the required ` ``` ``` With `onload` callback, it will notify us when the api is ready for use. ``` [example]: https://github.com/DanSnow/vue-recaptcha/tree/master/example [recaptcha-params]: https://developers.google.com/recaptcha/docs/display#render_param [invisible-recaptcha-params]: https://developers.google.com/recaptcha/docs/invisible#render_param [recaptcha-global]: https://developers.google.com/recaptcha/docs/faq#can-i-use-recaptcha-globally