UNPKG

@senka-ai/ui

Version:

A modern, type-safe Svelte 5 UI component library with full theme support, accessibility standards, and robust state management patterns

19 lines 891 B
import type { FormInputComponent, IconComponent, IconSizeComponent, InputHandlers } from '../../type/component'; import { type ValidationRule } from '../../utils/validation.svelte'; interface Props extends FormInputComponent, IconComponent, IconSizeComponent, InputHandlers { unit?: string; inputState?: 'default' | 'focused' | 'error' | 'disabled'; showPlaceholder?: boolean; showIcon?: boolean; showUnit?: boolean; value?: string; required?: boolean; /** Array of validation rules to apply to this field */ validationRules?: ValidationRule<string>[]; /** Whether to show validation errors immediately or only after blur */ validateOnChange?: boolean; } declare const TextField: import("svelte").Component<Props, {}, "value">; type TextField = ReturnType<typeof TextField>; export default TextField; //# sourceMappingURL=TextField.svelte.d.ts.map