diff --git a/docs/pages/api-docs/textarea-autosize.md b/docs/pages/api-docs/textarea-autosize.md index e2576f541c1f36..65863ba3ace574 100644 --- a/docs/pages/api-docs/textarea-autosize.md +++ b/docs/pages/api-docs/textarea-autosize.md @@ -28,7 +28,7 @@ You can learn more about the difference by [reading this guide](/guides/minimizi |:-----|:-----|:--------|:------------| | maxRows | number
| string
| | Maximum number of rows to display. | | minRows | number
| string
| 1 | Minimum number of rows to display. | -| ~~rows~~ | oneOfType([PropTypes.number | | *Deprecated*. Use `rowsMin` instead.

Minimum number of rows to display. | +| ~~rows~~ | oneOfType([PropTypes.number | | *Deprecated*. Use `minRows` instead.

Minimum number of rows to display. | | ~~rowsMax~~ | oneOfType([PropTypes.number | | *Deprecated*. Use `maxRows` instead.

Maximum number of rows to display. | | ~~rowsMin~~ | oneOfType([PropTypes.number | | *Deprecated*. Use `minRows` instead.

Minimum number of rows to display. | diff --git a/packages/material-ui/src/TextareaAutosize/TextareaAutosize.d.ts b/packages/material-ui/src/TextareaAutosize/TextareaAutosize.d.ts index 64e3505310e130..82f81cdaa8e1ab 100644 --- a/packages/material-ui/src/TextareaAutosize/TextareaAutosize.d.ts +++ b/packages/material-ui/src/TextareaAutosize/TextareaAutosize.d.ts @@ -6,7 +6,7 @@ export interface TextareaAutosizeProps ref?: React.Ref; /** * Minimum number of rows to display. - * @deprecated Use `rowsMin` instead. + * @deprecated Use `minRows` instead. */ rows?: string | number; /** diff --git a/packages/material-ui/src/TextareaAutosize/TextareaAutosize.js b/packages/material-ui/src/TextareaAutosize/TextareaAutosize.js index c98c1175b159bc..99b42466365bb7 100644 --- a/packages/material-ui/src/TextareaAutosize/TextareaAutosize.js +++ b/packages/material-ui/src/TextareaAutosize/TextareaAutosize.js @@ -213,11 +213,11 @@ TextareaAutosize.propTypes = { placeholder: PropTypes.string, /** * Minimum number of rows to display. - * @deprecated Use `rowsMin` instead. + * @deprecated Use `minRows` instead. */ rows: deprecatedPropType( PropTypes.oneOfType([PropTypes.number, PropTypes.string]), - 'Use `rowsMin` instead.', + 'Use `minRows` instead.', ), /** * Maximum number of rows to display.