diff --git a/packages/material-ui/src/Input/Input.d.ts b/packages/material-ui/src/Input/Input.d.ts index f0a300a9e7972c..e26bd36026c9ae 100644 --- a/packages/material-ui/src/Input/Input.d.ts +++ b/packages/material-ui/src/Input/Input.d.ts @@ -29,7 +29,7 @@ export interface InputProps rowsMax?: string | number; startAdornment?: React.ReactNode; type?: string; - value?: Array | string | number; + value?: Array | string | number | boolean; /** * `onChange`, `onKeyUp` + `onKeyDown` are applied to the inner `InputComponent`, * which by default is an input or textarea. Since these handlers differ from the diff --git a/packages/material-ui/src/Input/Input.js b/packages/material-ui/src/Input/Input.js index e40c8045a7c774..5f53bd90019548 100644 --- a/packages/material-ui/src/Input/Input.js +++ b/packages/material-ui/src/Input/Input.js @@ -657,7 +657,8 @@ Input.propTypes = { value: PropTypes.oneOfType([ PropTypes.string, PropTypes.number, - PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.number])), + PropTypes.bool, + PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.bool])), ]), }; diff --git a/pages/api/input.md b/pages/api/input.md index 7be4b940f1a99b..b050e825147da2 100644 --- a/pages/api/input.md +++ b/pages/api/input.md @@ -40,7 +40,7 @@ title: Input API | rowsMax | union: string |
 number
|   | Maximum number of rows to display when multiline option is set to true. | | startAdornment | node |   | Start `InputAdornment` for this component. | | type | string | 'text' | Type of the input element. It should be a valid HTML5 input type. | -| value | union: string |
 number |
 arrayOf
|   | The input value, required for a controlled component. | +| value | union: string |
 number |
 bool |
 arrayOf
|   | The input value, required for a controlled component. | Any other properties supplied will be spread to the root element (native element).