Skip to Content
ContentAPIInterfacesInterface: UseInferredFormOptions<T>

Hero Hook Form API v2.5.1


Hero Hook Form API / UseInferredFormOptions

Interface: UseInferredFormOptions<T>

Defined in: hooks/useInferredForm.ts:21 

Options for the useInferredForm hook.

Type Parameters

T

T extends FieldValues

The form data type

Properties

defaultValues?

optional defaultValues: Partial<T>

Defined in: hooks/useInferredForm.ts:22 


mode?

optional mode: "onChange" | "onBlur" | "onSubmit" | "all" | "onTouched"

Defined in: hooks/useInferredForm.ts:23 


reValidateMode?

optional reValidateMode: "onChange" | "onBlur" | "onSubmit"

Defined in: hooks/useInferredForm.ts:24 


shouldFocusError?

optional shouldFocusError: boolean

Defined in: hooks/useInferredForm.ts:25 


shouldUnregister?

optional shouldUnregister: boolean

Defined in: hooks/useInferredForm.ts:26 


delayError?

optional delayError: number

Defined in: hooks/useInferredForm.ts:27