Interface: FieldConfig
Imported from
@react-logic/utilsDefined in: utils/src/lib/forms.ts:128
Per-field configuration. All fields optional — an empty {} is a text
field with no validators and '' as the initial.
Type Parameters
T
T = string
The field's value type.
Properties
initial?
readonlyoptionalinitial?:T
Defined in: utils/src/lib/forms.ts:129
kind?
readonlyoptionalkind?:"text"|"checkbox"|"radio"|"select"
Defined in: utils/src/lib/forms.ts:130
parse?
readonlyoptionalparse?: (raw) =>T
Defined in: utils/src/lib/forms.ts:131
Parameters
raw
string
Returns
T
validators?
readonlyoptionalvalidators?: readonlyValidatorEntry<T>[]
Defined in: utils/src/lib/forms.ts:132