next-recaptcha-v3
Version:
🤖 Next.js hook to add Google ReCaptcha to your application
14 lines (13 loc) • 373 B
TypeScript
interface ReCaptchaProps {
onValidate: (token: string) => void;
action: string;
validate?: boolean;
reCaptchaKey?: string;
}
/** React Component to generate ReCaptcha token
* @example
* <ReCaptcha action='form_submit' onValidate={handleToken} />
*/
declare const ReCaptcha: React.FC<ReCaptchaProps>;
export { ReCaptcha };
export type { ReCaptchaProps };