Skip to content

Commit 530b068

Browse files
authored
Merge branch 'master' into inline-badge
2 parents 4ed3fa5 + 36d31fe commit 530b068

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed

README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
<h1 align="center">React Google Recaptcha V3</h1>
1+
<h1 align="center">Fork of React Google Recaptcha V3</h1>
22
<div align="center">
33

44
[React](https://reactjs.org/) library for integrating Google ReCaptcha V3 to your App.
55

6-
[![npm package](https://img.shields.io/npm/v/react-google-recaptcha-v3/latest.svg)](https://www.npmjs.com/package/react-google-recaptcha-v3)
6+
[![npm package](https://img.shields.io/npm/v/react-google-recaptcha-v3/latest.svg)](https://www.npmjs.com/package/@ramirezcgn/react-google-recaptcha-v3)
77
![Code style](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)
88
![type definition](https://img.shields.io/npm/types/react-google-recaptcha-v3)
99

@@ -12,7 +12,7 @@
1212
## Install
1313

1414
```bash
15-
npm install react-google-recaptcha-v3
15+
npm install @ramirezcgn/react-google-recaptcha-v3
1616
```
1717

1818
## Usage
@@ -48,6 +48,8 @@ Same thing applied when you use this library with framework such as Next.js or R
4848
| language | String | | No | optional prop to support different languages that is supported by Google Recaptcha. https://developers.google.com/recaptcha/docs/language |
4949
| useRecaptchaNet | Boolean | false | No | The provider also provide the prop `useRecaptchaNet` to load script from `recaptcha.net`: https://developers.google.com/recaptcha/docs/faq#can-i-use-recaptcha-globally |
5050
| useEnterprise | Boolean | false | No | [Enterprise option](#enterprise) |
51+
| inlineBadgeId | String | | No | Container ID where the recaptcha badge will be rendered |
52+
| parameters | Object | | No | Configuration for the inline badge (See google recaptcha docs) |
5153

5254
```javascript
5355
import { GoogleReCaptchaProvider } from 'react-google-recaptcha-v3';
@@ -64,6 +66,11 @@ ReactDom.render(
6466
appendTo: 'head', // optional, default to "head", can be "head" or "body",
6567
nonce: undefined // optional, default undefined
6668
}}
69+
inlineBadgeId="g-recaptcha" // optional to make it inline (there must exists a container with this Id)
70+
parameters={{// optional inline badge configuration
71+
badge: 'inline',
72+
size: 'invisible'
73+
}}
6774
>
6875
<YourApp />
6976
</GoogleReCaptchaProvider>,

package.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "react-google-recaptcha-v3",
2+
"name": "@ramirezcgn/react-google-recaptcha-v3",
33
"version": "1.9.8",
4-
"description": "React component for google-recaptcha v3",
4+
"description": "Fork of React component for google-recaptcha v3",
55
"module": "dist/react-google-recaptcha-v3.esm.js",
66
"main": "dist/react-google-recaptcha-v3.cjs.js",
77
"types": "dist/types/index.d.ts",
@@ -13,11 +13,14 @@
1313
"lint": "tslint -c tslint.json 'src/**/*.ts'"
1414
},
1515
"author": "Duong Tran",
16-
"homepage": "https://github.com/t49tran/react-google-recaptcha-v3",
16+
"contributors": [
17+
"Nicolas Ramirez <[email protected]> (https://github.com/ramirezcgn"
18+
],
19+
"homepage": "https://github.com/ramirezcgn/react-google-recaptcha-v3",
1720
"license": "MIT",
1821
"repository": {
1922
"type": "git",
20-
"url": "https://github.com/t49tran/react-google-recaptcha-v3"
23+
"url": "git://github.com/ramirezcgn/react-google-recaptcha-v3"
2124
},
2225
"peerDependencies": {
2326
"react": "^17.0 || ^18.0",

0 commit comments

Comments
 (0)