File tree 2 files changed +25
-0
lines changed
2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ export const FormStateApi = ({
21
21
isValidating : ReactNode | string
22
22
isLoading : ReactNode | string
23
23
validatingFields : ReactNode | string
24
+ disabled : ReactNode | string
24
25
}
25
26
}
26
27
columnIndent ?: boolean
@@ -221,5 +222,19 @@ export const FormStateApi = ({
221
222
component to retrieve error message easily.
222
223
</ td >
223
224
</ tr >
225
+ < tr >
226
+ { columnIndent && (
227
+ < td >
228
+ < code > formState</ code >
229
+ </ td >
230
+ ) }
231
+ < td >
232
+ < code > disabled</ code >
233
+ </ td >
234
+ < td >
235
+ < code className = { typographyStyles . typeText } > boolean</ code >
236
+ </ td >
237
+ < td > { ( api || API ) . formState . disabled } </ td >
238
+ </ tr >
224
239
</ >
225
240
)
Original file line number Diff line number Diff line change @@ -792,6 +792,16 @@ setValue('test', '')
792
792
Capture fields which are getting async validation.
793
793
</ >
794
794
) ,
795
+ disabled : (
796
+ < >
797
+ Set to < code > true</ code > if the form is disabled via the{ " " }
798
+ < code > disabled</ code > prop in
799
+ < Link href = "/docs/useform" aria-label = "read more about reset api" >
800
+ useForm
801
+ </ Link >
802
+ .
803
+ </ >
804
+ ) ,
795
805
} ,
796
806
errors : {
797
807
title : "errors" ,
You can’t perform that action at this time.
0 commit comments