UNPKG

claritykit-svelte

Version:

A comprehensive Svelte component library focused on accessibility, ADHD-optimized design, developer experience, and full SSR compatibility

37 lines 1.06 kB
interface Props { id?: string; label?: string; description?: string; required?: boolean; disabled?: boolean; readonly?: boolean; error?: string | null; success?: string | null; hint?: string; size?: 'sm' | 'md' | 'lg'; inline?: boolean; hideLabel?: boolean; children?: import('svelte').Snippet<[ { id: string; disabled: boolean; readonly: boolean; required: boolean; 'aria-invalid': boolean; 'aria-describedby': string; onfocus: (e: Event) => void; onblur: (e: Event) => void; oninput: (e: Event) => void; onchange: (e: Event) => void; oninvalid: (e: Event) => void; } ]>; } declare const FormField: import("svelte").Component<Props, { focus: () => void; blur: () => void; validate: () => boolean; }, "error" | "success">; type FormField = ReturnType<typeof FormField>; export default FormField; //# sourceMappingURL=FormField.svelte.d.ts.map