Installation
npm install --save @types/hcaptcha__react-hcaptcha
Summary
This package contains type definitions for @hcaptcha/react-hcaptcha (https://github.com/hCaptcha/react-hcaptcha).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hcaptcha__react-hcaptcha.
import * as React from "react";
interface HCaptchaState {
isApiReady: boolean;
isRemoved: boolean;
elementId: string;
captchaId: string;
}
interface HCaptchaProps {
onExpire?: (() => any) | undefined;
onError?: ((event: string) => any) | undefined;
onVerify?: ((token: string) => any) | undefined;
languageOverride?: string | undefined;
sitekey: string;
size?: "normal" | "compact" | "invisible" | undefined;
theme?: "light" | "dark" | undefined;
tabIndex?: number | undefined;
id?: string | undefined;
reCaptchaCompat?: boolean | undefined;
}
declare class HCaptcha extends React.Component<HCaptchaProps, HCaptchaState> {
resetCaptcha(): void;
renderCaptcha(): void;
removeCaptcha(): void;
execute(): void;
}
export = HCaptcha;
Additional Details
- Last updated: Tue, 07 Nov 2023 03:09:37 GMT
- Dependencies: @types/react
Credits
These definitions were written by Matt Sutkowski.