UNPKG

goobs-frontend

Version:

A comprehensive React-based libary for building modern web applications

16 lines 641 B
export interface FormFieldBinding { /** The field name (echoed back for convenience). */ name: string; /** Current value at the field path. */ value: unknown; /** Write a new value (re-validates the form). */ onChange: (value: unknown) => void; /** Mark the field touched (call on blur). */ onBlur: () => void; /** Current error message, or `undefined` when valid / untouched. */ error: string | undefined; /** Whether the schema marks this field required. */ required: boolean; } export declare function useFormField(name: string): FormFieldBinding; //# sourceMappingURL=useFormField.d.ts.map