UNPKG

@wojtekmaj/react-recaptcha-v3

Version:

Integrate Google reCAPTCHA v3 with your React app

26 lines (25 loc) 903 B
import type { ScriptProps } from './types.js'; type ReCaptchaProviderProps = { container?: { element?: string | HTMLElement; parameters: { badge?: 'inline' | 'bottomleft' | 'bottomright'; hidden?: boolean; callback?: () => void; errorCallback?: () => void; expiredCallback?: () => void; tabindex?: number; theme?: 'dark' | 'light'; }; }; children?: React.ReactNode; language?: string; reCaptchaKey: string; scriptProps?: Omit<ScriptProps, 'src'> & { onLoadCallbackName?: string; }; useEnterprise?: boolean; useRecaptchaNet?: boolean; }; export default function ReCaptchaProvider({ container, children, language, reCaptchaKey, scriptProps, useEnterprise, useRecaptchaNet, }: ReCaptchaProviderProps): import("react/jsx-runtime").JSX.Element; export {};