Skip to content

Interface: FieldView<Value, Output> ​

Defined in: react/src/use-field.ts:25

What useField returns.

Type Parameters ​

Type ParameterDefault type
Value-
OutputValue

Properties ​

PropertyModifierTypeDescriptionDefined in
attrsreadonlyFieldBindingAttributesTo spread on the input.react/src/use-field.ts:34
descriptionIdreadonlystring-react/src/use-field.ts:32
errorIdreadonlystring-react/src/use-field.ts:31
errorMessagereadonlystring | undefinedThe field's first visible error as text, from the form's formatError, for the element with errorId.react/src/use-field.ts:29
idreadonlystring-react/src/use-field.ts:30
nodereadonlyFieldNode<Value, Output>-react/src/use-field.ts:26
setValuereadonly(value) => voidWrites a draft value, from the input's onChange.react/src/use-field.ts:38
statereadonlyNodeState<Value>-react/src/use-field.ts:27
valuereadonlyValueThe draft value, for the input's value.react/src/use-field.ts:36

Released under the MIT License.