UNPKG

@vulform/astro

Version:

Astro components for VulForm contact form management

37 lines 976 B
/** * Type definitions for VulForm Astro integration */ import type { VulFormProps as CoreVulFormProps } from '@vulform/core'; export interface AstroVulFormProps extends CoreVulFormProps { class?: string; style?: Record<string, any>; } export interface VulFormClientConfig { templateId: string; apiKey?: string; apiUrl?: string; theme?: string; prefill?: Record<string, any>; enableAnalytics?: boolean; spamProtection?: boolean; loadingState?: 'default' | 'skeleton' | 'spinner'; resetOnSuccess?: boolean; showSuccessMessage?: boolean; autoRedirect?: boolean; } export interface VulFormIntegrationOptions { apiKey?: string; apiUrl?: string; debug?: boolean; } declare global { interface Window { __VULFORM_CONFIG__?: { apiKey?: string; apiUrl?: string; debug?: boolean; }; __VULFORM_API_KEY__?: string; } } //# sourceMappingURL=types.d.ts.map