@wojtekmaj/react-recaptcha-v3
Version:
Integrate Google reCAPTCHA v3 with your React app
15 lines (14 loc) • 407 B
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;
};