Nutrias Punching Marmots

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

    2.3.4 • 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

    // Type definitions for react-recaptcha 2.3
    // Project: https://github.com/appleboy/react-recaptcha
    // Definitions by: Mohamed Hegazy <https://github.com/mhegazy>
    //                 Zach <https://github.com/zzanol>
    // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
    // TypeScript Version: 2.8
    
    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: Thu, 08 Jul 2021 22:41:27 GMT
    • Dependencies: @types/react
    • Global values: none

    Credits

    These definitions were written by Mohamed Hegazy, and Zach.

    Keywords

    none

    Install

    npm i @types/react-recaptcha

    DownloadsWeekly Downloads

    4,721

    Version

    2.3.4

    License

    MIT

    Unpacked Size

    5.71 kB

    Total Files

    4

    Last publish

    Collaborators

    • types