submit
()
|
Promise
<
void
>
Triggers form submission.
|
validate
(
opts
:
{
name
?:
keyof
T
|
(
keyof
T
)[]
,
silent
?:
boolean
,
nested
?:
boolean
,
transform
?:
boolean
})
|
Promise
<
T
>
Triggers form validation. Will raise any errors unless opts.silent is set to true.
|
clear
(
path
?:
keyof
T
|
RegExp
)
|
void
Clears form errors associated with a specific path. If no path is provided, clears all form errors.
|
getErrors
(
path
?:
keyof
T
RegExp
)
|
FormError
[]
Retrieves form errors associated with a specific path. If no path is provided, returns all form errors.
|
setErrors
(
errors
:
FormError
[]
,
name
?:
keyof
T
RegExp
)
|
void
Sets form errors for a given path. If no path is provided, overrides all errors.
|
errors
|
Ref
<
FormError
[]
>
A reference to the array containing validation errors. Use this to access or manipulate the error information.
|
disabled
|
Ref
<
boolean
>
|
dirty
|
Ref
<
boolean
>
true
if at least one form field has been updated by the user.
|
dirtyFields
|
DeepReadonly
<
Set
T
>>
Tracks fields that have been modified by the user.
|
touchedFields
|
DeepReadonly
<
Set
T
>>
Tracks fields that the user interacted with.
|
blurredFields
|
DeepReadonly
<
Set
T
>>
Tracks fields blurred by the user.
|