interface FieldTextProps What useField spreads on an <input>, <textarea> or <select> of any field but a boolean one: the field's text, written through inputText (so - and 1. survive typing into a number field), and IME composition.
Properties
value
readonly value: string; No documentation.
onChange
readonly onChange: (event: {
readonly currentTarget: {
readonly value: string;
};
}) => void; No documentation.
onCompositionStart
readonly onCompositionStart: () => void; The text is kept but not written until the IME composition ends.
onCompositionEnd
readonly onCompositionEnd: (event: {
readonly currentTarget: {
readonly value: string;
};
}) => void; The composed text is written.
onBlur
readonly onBlur: () => void; Commits the field (see FieldHandle.commit).
"aria-invalid"
readonly "aria-invalid": boolean; True while the field has validation messages (errors) or an error.