1 | import * as React from "react";
|
2 | import { AbstractPureComponent2 } from "../../common";
|
3 | import { IntentProps, Props } from "../../common/props";
|
4 | export declare type TextAreaProps = ITextAreaProps;
|
5 |
|
6 | export interface ITextAreaProps extends IntentProps, Props, React.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
7 | |
8 |
|
9 |
|
10 | fill?: boolean;
|
11 | |
12 |
|
13 |
|
14 | large?: boolean;
|
15 | |
16 |
|
17 |
|
18 | small?: boolean;
|
19 | |
20 |
|
21 |
|
22 | growVertically?: boolean;
|
23 | |
24 |
|
25 |
|
26 | inputRef?: React.Ref<HTMLTextAreaElement>;
|
27 | }
|
28 | export interface ITextAreaState {
|
29 | height?: number;
|
30 | }
|
31 |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 | export declare class TextArea extends AbstractPureComponent2<TextAreaProps, ITextAreaState> {
|
37 | static displayName: string;
|
38 | state: ITextAreaState;
|
39 | textareaElement: HTMLTextAreaElement | null;
|
40 | private handleRef;
|
41 | componentDidMount(): void;
|
42 | componentDidUpdate(prevProps: TextAreaProps): void;
|
43 | render(): JSX.Element;
|
44 | private handleChange;
|
45 | }
|