@wojtekmaj/react-recaptcha-v3
Version:
Integrate Google reCAPTCHA v3 with your React app
17 lines (15 loc) • 392 B
text/typescript
export type ReCaptchaInstance = {
execute?: (
clientIdOrReCaptchaKey: number | string,
options: { action?: string },
) => Promise<string>;
render?: (container: string | HTMLElement, options: Record<string, unknown>) => number;
};
export type ScriptProps = {
appendTo?: 'head' | 'body';
async?: boolean;
defer?: boolean;
id?: string;
nonce?: string;
src: string;
};