ngx-turnstile
Version:
Angular component for Cloudflare Turnstile
15 lines (14 loc) • 453 B
TypeScript
export interface TurnstileOptions {
sitekey: string;
action?: string;
cData?: string;
callback?: (token: string) => void;
'error-callback'?: (errorCode: string) => boolean;
'expired-callback'?: () => void;
theme?: 'light' | 'dark' | 'auto';
language?: string;
tabindex?: number;
appearance?: 'always' | 'execute' | 'interaction-only';
retry?: 'never' | 'auto';
size?: 'normal' | 'flexible' | 'compact';
}