UNPKG

react-grecaptcha-v3

Version:

Google Recaptcha V3 for React.js based application. Keep website performance high while prioritizing security.

26 lines (25 loc) 825 B
import { FunctionComponent, ReactNode, RefObject } from 'react'; import { ExecuteRecaptcha } from './useExecuteReCaptcha'; type ContextType = { executeRecaptcha: ExecuteRecaptcha; injectScript: RefObject<null | (() => void)>; }; export declare const Context: import("react").Context<ContextType | null>; export type ScriptProps = { nonce?: string; defer?: boolean; async?: boolean; appendTo?: 'head' | 'body'; id?: string; }; export declare const defaultScriptId = "rusted_labs_react_recaptcha_v3"; export type Props = Readonly<{ siteKey: string | null; children: ReactNode; useRecaptchaNet?: boolean; enterprise?: boolean; scriptProps?: ScriptProps; injectionDelay?: number; }>; declare const ReCaptchaProvider: FunctionComponent<Props>; export default ReCaptchaProvider;