1 | import * as React from 'react';
|
2 | import { HTMLProps } from 'react';
|
3 | export declare enum TextAreResizeOrientation {
|
4 | horizontal = "horizontal",
|
5 | vertical = "vertical",
|
6 | both = "both"
|
7 | }
|
8 | export interface TextAreaProps extends Omit<HTMLProps<HTMLTextAreaElement>, 'onChange' | 'ref'> {
|
9 |
|
10 | className?: string;
|
11 |
|
12 | isRequired?: boolean;
|
13 |
|
14 | isDisabled?: boolean;
|
15 |
|
16 | isReadOnly?: boolean;
|
17 |
|
18 | isIconSprite?: boolean;
|
19 |
|
20 | autoResize?: boolean;
|
21 | |
22 |
|
23 |
|
24 |
|
25 | validated?: 'success' | 'warning' | 'error' | 'default';
|
26 |
|
27 | value?: string | number;
|
28 |
|
29 | onChange?: (value: string, event: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
30 |
|
31 | resizeOrientation?: 'horizontal' | 'vertical' | 'both';
|
32 |
|
33 | 'aria-label'?: string;
|
34 |
|
35 | innerRef?: React.RefObject<any>;
|
36 | }
|
37 | export declare class TextAreaBase extends React.Component<TextAreaProps> {
|
38 | static displayName: string;
|
39 | static defaultProps: TextAreaProps;
|
40 | constructor(props: TextAreaProps);
|
41 | private handleChange;
|
42 | render(): JSX.Element;
|
43 | }
|
44 | export declare const TextArea: React.ForwardRefExoticComponent<TextAreaProps & React.RefAttributes<HTMLInputElement>>;
|
45 | //# sourceMappingURL=TextArea.d.ts.map |
\ | No newline at end of file |