@mac-barrett/svelte-recaptcha
Version:
A SvelteKit/Svelte Component that handles all of your ReCaptcha needs!
23 lines (22 loc) • 940 B
TypeScript
import { SvelteComponentTyped } from "svelte";
declare const __propDef: {
props: {
/** SITE_KEY From google */ SITE_KEY: string;
/** Styles the captcha widget */ captchaStyle?: {
theme?: "light" | "dark" | undefined;
size?: "normal" | "compact" | undefined;
} | undefined;
/** Returns the capthca's token if it has one. If no response it returns an empty string */ getRecaptchaResponse?: (() => string) | undefined;
};
events: {
[evt: string]: CustomEvent<any>;
};
slots: {};
};
export declare type ReCaptchaProps = typeof __propDef.props;
export declare type ReCaptchaEvents = typeof __propDef.events;
export declare type ReCaptchaSlots = typeof __propDef.slots;
export default class ReCaptcha extends SvelteComponentTyped<ReCaptchaProps, ReCaptchaEvents, ReCaptchaSlots> {
get getRecaptchaResponse(): () => string;
}
export {};