@types/react-recaptcha
TypeScript icon, indicating that this package has built-in type declarations

2.3.7 • Public • Published

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

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

Credits

These definitions were written by Mohamed Hegazy, and Zach.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/react-recaptcha

Weekly Downloads

6,539

Version

2.3.7

License

MIT

Unpacked Size

5.07 kB

Total Files

5

Last publish

Collaborators

  • types