# @types/react-recaptcha

> TypeScript definitions for react-recaptcha

Latest version **2.3.7** (published 2023-12-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/react-recaptcha
pnpm add @types/react-recaptcha
yarn add @types/react-recaptcha
bun add @types/react-recaptcha
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 2.3.7 |
| Published | 2023-12-12 |
| First published | 2016-12-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51442 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/react-recaptcha
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-recaptcha
- npm.io page: https://npm.io/package/@types/react-recaptcha

## Dependencies (1)

- [@types/react](https://npm.io/package/@types/react.md) *

## Recent versions

- 2.3.7 (latest) — 2023-12-12
- 2.3.6 (ts4.5) — 2023-11-07
- 2.3.4 (ts3.6) — 2021-07-08
- 2.3.3 (ts2.8) — 2018-08-06
- 2.3.2 (ts2.6) — 2018-04-04
- 2.3.0 (ts2.3) — 2018-01-02
- 2.2.3 (ts2.1) — 2017-06-02
- 2.2.0 (ts2.0) — 2016-12-29
- 2.3.5 — 2023-10-18
- 2.3.1 — 2018-02-12
- 2.2.4 — 2017-06-23
- 2.2.2 — 2017-03-30
- 2.2.1 — 2017-01-23

## README

# Installation
> `npm install --save @types/react-recaptcha`

# Summary
This package contains type definitions for react-recaptcha (https://github.com/appleboy/react-recaptcha).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-recaptcha.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-recaptcha/index.d.ts)
````ts
import { Component } from "react";

export = Recaptcha;

declare namespace Recaptcha {
    interface RecaptchaProps {
        className?: string | undefined;
        elementID?: string | undefined;
        expiredCallback?(): any;
        expiredCallbackName?: string | undefined;
        onloadCallback?(): any;
        onloadCallbackName?: string | undefined;
        render?: "onload" | "explicit" | undefined;
        size?: "normal" | "compact" | "invisible" | undefined;
        tabindex?: number | string | undefined;
        theme?: "dark" | "light" | undefined;
        type?: "audio" | "image" | undefined;
        verifyCallback?(response: string): any;
        verifyCallbackName?: string | undefined;
        sitekey?: string | undefined;
        badge?: "bottomright" | "bottomleft" | "inline" | undefined;
        hl?: string | undefined; // https://developers.google.com/recaptcha/docs/language
    }
}

declare class Recaptcha extends Component<Recaptcha.RecaptchaProps> {
    static propTypes: any;
    static defaultProps: Recaptcha.RecaptchaProps;
    reset(): void;
    execute(): void;
}

````

### Additional Details
 * Last updated: Tue, 12 Dec 2023 19:06:50 GMT
 * Dependencies: [@types/react](https://npmjs.com/package/@types/react)

# Credits
These definitions were written by [Mohamed Hegazy](https://github.com/mhegazy), and [Zach](https://github.com/zzanol).

---
_Source: https://npm.io/package/@types/react-recaptcha · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
