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.
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;
}
}
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.