Skip to content

Commit 01227d4

Browse files
[docs] Remove useFormControl return values from demos page (#37036)
1 parent 95f93e7 commit 01227d4

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

docs/data/base/components/form-control/form-control.md

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -83,25 +83,6 @@ Note that even though Form Control supports both controlled and uncontrolled-sty
8383
(i.e. it accepts `value` and `defaultValue` props), `useFormControlContext` returns only the controlled `value`.
8484
This way, you don't have to implement both in your custom input—Form Control does this for you.
8585

86-
`useFormControlContext` returns an object with the following fields:
87-
88-
| Name | Type | Description |
89-
| :--------- | :------ | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
90-
| `disabled` | boolean | Represents the value of the FormControl's `disabled` prop. |
91-
| `error` | boolean | Represents the value of the Form Control component's `error` prop. Note that it is not calculated automatically (i.e. it's not set when `required: true` and `value: ''`). |
92-
| `filled` | boolean | Set to `true` if `value` is not empty. |
93-
| `focused` | boolean | Set to `true` if the wrapped input has received focus. |
94-
| `required` | boolean | Represents the value of the Form Control component's `required` prop. |
95-
| `value` | unknown | The current value of the form control. |
96-
97-
The following callbacks are also part of the returned object—they are meant to be used when creating custom inputs:
98-
99-
| Name | Type | Description |
100-
| :--------- | :------------------------ | :------------------------------------------------------------ |
101-
| `onChange` | React.ChangeEvent => void | Value change handler. Should be forwarded to the inner input. |
102-
| `onBlur` | () => void | Focus change handler. Should be forwarded to the inner input. |
103-
| `onFocus` | () => void | Focus change handler. Should be forwarded to the inner input. |
104-
10586
## Customization
10687

10788
:::info

0 commit comments

Comments
 (0)