Interface FormHandlerProps<Values>

Type Parameters

  • Values extends BaseValues

Hierarchy

Properties

children: ReactNode
disabledWhileSubmitting?: boolean
initialValues: Values
onSubmit: ((values: Values) => void)

Type declaration

    • (values: Values): void
    • Parameters

      • values: Values

      Returns void

touchOnBlur?: boolean
touchOnChange?: boolean
touchOnFocus?: boolean
validate?: ((values: Values, fieldName?: DeepKeys<Values>) => Promise<Partial<Record<DeepKeys<Values>, string>>>)

Type declaration

    • (values: Values, fieldName?: DeepKeys<Values>): Promise<Partial<Record<DeepKeys<Values>, string>>>
    • Parameters

      • values: Values
      • Optional fieldName: DeepKeys<Values>

      Returns Promise<Partial<Record<DeepKeys<Values>, string>>>

validateOnBlur?: boolean
validateOnChange?: boolean
validateOnFocus?: boolean
validateOnMount?: boolean
validateOnSubmit?: boolean

Generated using TypeDoc