UNPKG

react-grecaptcha-v3

Version:

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

21 lines (19 loc) 709 B
type ReCaptchaProps = Readonly<{ siteKey: string; useRecaptchaNet: boolean; enterprise: boolean; }>; declare const getScriptSrc: ({ enterprise, useRecaptchaNet, siteKey, }: ReCaptchaProps) => string; type CreatScriptProps = Readonly<{ id: string; async: boolean; defer: boolean; src: string; nonce?: string; }>; type InjectScriptProps = CreatScriptProps & { appendTo: 'head' | 'body'; }; declare const maybeInjectScript: ({ appendTo, ...scriptProps }: InjectScriptProps) => void; declare const maybeRemoveScript: (scriptId: string) => void; export { type CreatScriptProps, type InjectScriptProps, type ReCaptchaProps, getScriptSrc, maybeInjectScript, maybeRemoveScript };