Skip to Content
ContentAPIInterfacesInterface: UseEnhancedFormStateOptions<T>

Hero Hook Form API v2.5.1


Hero Hook Form API / UseEnhancedFormStateOptions

Interface: UseEnhancedFormStateOptions<T>

Defined in: hooks/useEnhancedFormState.ts:32 

Options for the useEnhancedFormState hook.

Type Parameters

T

T extends FieldValues

The form data type

Properties

onSuccess()?

optional onSuccess: (data) => void

Defined in: hooks/useEnhancedFormState.ts:33 

Parameters

data

T

Returns

void


onError()?

optional onError: (error) => void

Defined in: hooks/useEnhancedFormState.ts:34 

Parameters

error

string

Returns

void


successMessage?

optional successMessage: string

Defined in: hooks/useEnhancedFormState.ts:35 


errorMessage?

optional errorMessage: string

Defined in: hooks/useEnhancedFormState.ts:36 


autoReset?

optional autoReset: boolean

Defined in: hooks/useEnhancedFormState.ts:37 


resetDelay?

optional resetDelay: number

Defined in: hooks/useEnhancedFormState.ts:38