UNPKG

@wojtekmaj/react-recaptcha-v3

Version:

Integrate Google reCAPTCHA v3 with your React app

16 lines (15 loc) 653 B
import type { ScriptProps } from './types.js'; type LoadGoogleRecaptchaScriptOptions = { language?: string; render: 'explicit' | (string & {}); scriptProps?: Omit<ScriptProps, 'src'>; useEnterprise?: boolean; useRecaptchaNet?: boolean; }; export declare function removeClient(clientId: number): void; export declare function registerInstance(instanceId: string, { onLoadCallback, onLoadCallbackName, ...loadGoogleRecaptchaScriptOptions }: LoadGoogleRecaptchaScriptOptions & { onLoadCallback?: () => void; onLoadCallbackName?: string; }): void; export declare function unregisterInstance(instanceId: string): void; export {};