import type { Snippet } from 'svelte';
import { type FormFieldStatus } from '../../../utils/formContext.js';
export interface FormFieldControlProps {
id?: string;
name?: string;
value: string;
status: FormFieldStatus;
helperText?: string;
disabled: boolean;
required: boolean;
setValue: (next: string) => void;
clearError: () => void;
}
/**
* Form-bound text input (email, tel, url, search, …).
*
* Kit remote: pass the encoded `name` (and `type`) from `.as()`, **not** the full
* spread — Kit’s `value` get/set fights `$bindable` and can loop.
*
* @example
* ```svelte
*