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: pages/api/input.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,8 @@ title: Input API
34
34
| <spanclass="prop-name">name</span> | <spanclass="prop-type">string || Name attribute of the `input` element. |
35
35
| <spanclass="prop-name">onChange</span> | <spanclass="prop-type">func || Callback fired when the value is changed.<br><br>**Signature:**<br>`function(event: object) => void`<br>*event:* The event source of the callback. You can pull out the new value by accessing `event.target.value`. |
36
36
| <spanclass="prop-name">placeholder</span> | <spanclass="prop-type">string || The short hint displayed in the input before the user enters a value. |
37
+
| <spanclass="prop-name">readOnly</span> | <spanclass="prop-type">bool || It prevents the user from changing the value of the field (not from interacting with the field). |
38
+
| <spanclass="prop-name">required</span> | <spanclass="prop-type">bool || If `true`, the input will be required. |
37
39
| <spanclass="prop-name">rows</span> | <spanclass="prop-type">union: string |<br> number<br> || Number of rows to display when multiline option is set to true. |
38
40
| <spanclass="prop-name">rowsMax</span> | <spanclass="prop-type">union: string |<br> number<br> || Maximum number of rows to display when multiline option is set to true. |
39
41
| <spanclass="prop-name">startAdornment</span> | <spanclass="prop-type">node || Start `InputAdornment` for this component. |
Copy file name to clipboardExpand all lines: pages/api/text-field.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,7 +59,7 @@ For advanced cases, please look at the source of TextField by clicking on the
59
59
| <spanclass="prop-name">name</span> | <spanclass="prop-type">string || Name attribute of the `input` element. |
60
60
| <spanclass="prop-name">onChange</span> | <spanclass="prop-type">func || Callback fired when the value is changed.<br><br>**Signature:**<br>`function(event: object) => void`<br>*event:* The event source of the callback. You can pull out the new value by accessing `event.target.value`. |
61
61
| <spanclass="prop-name">placeholder</span> | <spanclass="prop-type">string || The short hint displayed in the input before the user enters a value. |
62
-
| <spanclass="prop-name">required</span> | <spanclass="prop-type">bool | <spanclass="prop-default">false</span> | If `true`, the label is displayed as required. |
62
+
| <spanclass="prop-name">required</span> | <spanclass="prop-type">bool | <spanclass="prop-default">false</span> | If `true`, the label is displayed as required and the input will be required. |
63
63
| <spanclass="prop-name">rows</span> | <spanclass="prop-type">union: string |<br> number<br> || Number of rows to display when multiline option is set to true. |
64
64
| <spanclass="prop-name">rowsMax</span> | <spanclass="prop-type">union: string |<br> number<br> || Maximum number of rows to display when multiline option is set to true. |
65
65
| <spanclass="prop-name">select</span> | <spanclass="prop-type">bool | <spanclass="prop-default">false</span> | Render a `Select` element while passing the `Input` element to `Select` as `input` parameter. If this option is set you must pass the options of the select as children. |
0 commit comments