Properties
children
children: ReactNode
Optional
disabledWhileSubmitting
disabledWhileSubmitting?: boolean
errors
errors: Partial<Record<DeepKeys<Values>, string>>
initialValues
initialValues: Values
isSubmitting
isSubmitting: boolean
onErrors
onErrors: ((newErrors: Partial<Record<DeepKeys<Values>, string>>) => void)
Type declaration
-
- (newErrors: Partial<Record<DeepKeys<Values>, string>>): void
-
Parameters
-
newErrors: Partial<Record<DeepKeys<Values>, string>>
Returns void
onIsSubmitting
onIsSubmitting: ((nextIsSubmitting: boolean) => void)
Type declaration
-
- (nextIsSubmitting: boolean): void
-
Parameters
-
nextIsSubmitting: boolean
Returns void
onSubmit
onSubmit: ((values: Values) => void)
Type declaration
-
- (values: Values): void
-
Returns void
onValues
onValues: ((newValue: Values) => void)
Type declaration
-
- (newValue: Values): void
-
Returns void
Optional
touchOnBlur
touchOnBlur?: boolean
Optional
touchOnChange
touchOnChange?: boolean
Optional
touchOnFocus
touchOnFocus?: boolean
Optional
validate
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>>>
Optional
validateOnBlur
validateOnBlur?: boolean
Optional
validateOnChange
validateOnChange?: boolean
Optional
validateOnFocus
validateOnFocus?: boolean
Optional
validateOnMount
validateOnMount?: boolean
Optional
validateOnSubmit
validateOnSubmit?: boolean