Function: useFormField()
useFormField<
Value>(conf): [Value, (value) =>void]
Defined in: lib/forms/fields.ts:182
Hook to get and set the value of a form field, similar to useState.
Type Parameters
Value
Value
Parameters
conf
FieldConfigAtom<Value>
The field configuration atom.
Returns
[Value, (value) => void]
A tuple containing the value and a function to set the value.