Debian Codegraph @

node/@patternfly/react-core/dist/js/components/TextArea/TextArea.d.ts

raw
1 import { HTMLProps } from 'react';
2 export declare enum TextAreResizeOrientation {
3 horizontal = "horizontal",
4 vertical = "vertical",
5 both = "both",
6 none = "none"
7 }
8 export declare enum TextAreaReadOnlyVariant {
9 default = "default",
10 plain = "plain"
11 }
12 export interface TextAreaProps extends Omit<HTMLProps<HTMLTextAreaElement>, 'onChange' | 'ref'> {
13 /** Additional classes added to the text area. */
14 className?: string;
15 /** Flag to show if the text area is required. */
16 isRequired?: boolean;
17 /** Flag to show if the text area is disabled. */
18 isDisabled?: boolean;
19 /** Read only variant. */
20 readOnlyVariant?: 'default' | 'plain';
21 /** Flag to modify height based on contents. */
22 autoResize?: boolean;
23 /** Value to indicate if the text area is modified to show that validation state.
24 * If set to success, text area will be modified to indicate valid state.
25 * If set to error, text area will be modified to indicate error state.
26 */
27 validated?: 'success' | 'warning' | 'error' | 'default';
28 /** Value of the text area. */
29 value?: string | number;
30 /** A callback for when the text area value changes. */
31 onChange?: (event: React.ChangeEvent<HTMLTextAreaElement>, value: string) => void;
32 /** Sets the orientation to limit the resize to */
33 resizeOrientation?: 'horizontal' | 'vertical' | 'both' | 'none';
34 /** Custom flag to show that the text area requires an associated id or aria-label. */
35 'aria-label'?: string;
36 /** @hide A reference object to attach to the text area. */
37 innerRef?: React.RefObject<any>;
38 }
39 export declare const TextArea: import("react").ForwardRefExoticComponent<TextAreaProps & import("react").RefAttributes<HTMLTextAreaElement>>;
40 //# sourceMappingURL=TextArea.d.ts.map