You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/usecontroller/controller.mdx
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,7 @@ The following table contains information about properties which `Controller` pro
35
35
|`field`|`onChange`| <TypeText>`(value: any) => void`</TypeText> | A function which sends the input's value to the library.<br/><br/>_ It should be assigned to the `onChange` prop of the input and value should **not be `undefined`**.<br/>_ This prop update [formState](/docs/useform/formstate) and you should avoid manually invoke [setValue](/docs/useform/setvalue) or other API related to field update. |
36
36
|`field`|`onBlur`| <TypeText>`() => void`</TypeText> | A function which sends the input's onBlur event to the library. It should be assigned to the input's `onBlur` prop. |
37
37
|`field`|`value`| <TypeText>unknown</TypeText> | The current value of the controlled component. |
38
+
|`field`|`disabled`| <TypeText>boolean</TypeText> | The disabled state of the input. |
38
39
|`field`|`name`| <TypeText>string</TypeText> | Input's name being registered. |
39
40
|`field`|`ref`| <TypeText>React.ref</TypeText> | A ref used to connect hook form to the input. Assign `ref` to component's input ref to allow hook form to focus the error input. |
40
41
|`fieldState`|`invalid`| <TypeText>boolean</TypeText> | Invalid state for current input. |
0 commit comments