Interface: FieldView<Value, Output>
Defined in: react/src/use-field.ts:25
What useField returns.
Type Parameters
| Type Parameter | Default type |
|---|---|
Value | - |
Output | Value |
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
attrs | readonly | FieldBindingAttributes | To spread on the input. | react/src/use-field.ts:34 |
descriptionId | readonly | string | - | react/src/use-field.ts:32 |
errorId | readonly | string | - | react/src/use-field.ts:31 |
errorMessage | readonly | string | undefined | The field's first visible error as text, from the form's formatError, for the element with errorId. | react/src/use-field.ts:29 |
id | readonly | string | - | react/src/use-field.ts:30 |
node | readonly | FieldNode<Value, Output> | - | react/src/use-field.ts:26 |
setValue | readonly | (value) => void | Writes a draft value, from the input's onChange. | react/src/use-field.ts:38 |
state | readonly | NodeState<Value> | - | react/src/use-field.ts:27 |
value | readonly | Value | The draft value, for the input's value. | react/src/use-field.ts:36 |