1 | import * as React from 'react';
|
2 | import { Omit } from '..';
|
3 |
|
4 | export interface TextareaAutosizeProps
|
5 | extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'children' | 'rows'> {
|
6 | ref?: React.Ref<HTMLTextAreaElement>;
|
7 | /**
|
8 | * Minimum number of rows to display.
|
9 | * @deprecated Use `minRows` instead.
|
10 | */
|
11 | rows?: string | number;
|
12 | /**
|
13 | * Maximum number of rows to display.
|
14 | * @deprecated Use `maxRows` instead.
|
15 | */
|
16 | rowsMax?: string | number;
|
17 | /**
|
18 | * Minimum number of rows to display.
|
19 | * @deprecated Use `minRows` instead.
|
20 | */
|
21 | rowsMin?: string | number;
|
22 | /**
|
23 | * Maximum number of rows to display.
|
24 | */
|
25 | maxRows?: string | number;
|
26 | /**
|
27 | * Minimum number of rows to display.
|
28 | */
|
29 | minRows?: string | number;
|
30 | }
|
31 |
|
32 | /**
|
33 | *
|
34 | * Demos:
|
35 | *
|
36 | * - [Textarea Autosize](https://mui.com/components/textarea-autosize/)
|
37 | *
|
38 | * API:
|
39 | *
|
40 | * - [TextareaAutosize API](https://mui.com/api/textarea-autosize/)
|
41 | */
|
42 | export default function TextareaAutosize(props: TextareaAutosizeProps): JSX.Element;
|