Skip to Content
ContentAPIFunctionsFunction: useZodForm()

Hero Hook Form API v2.5.1


Hero Hook Form API / useZodForm

Function: useZodForm()

useZodForm<TFieldValues>(config): UseFormReturn<TFieldValues, any, TFieldValues>

Defined in: zod-integration.ts:49 

Hook for using Zod validation with React Hook Form

Type Parameters

TFieldValues

TFieldValues extends FieldValues

Parameters

config

ZodFormConfig<TFieldValues>

Returns

UseFormReturn<TFieldValues, any, TFieldValues>