import "./TextArea.css"; import { AriaLabelingProps, DomProps, InteractionStatesProps } from "../../shared"; import { BoxProps as BoxPropsForDocumentation } from "../../box"; import { ChangeEvent, ChangeEventHandler, ComponentProps, ElementType, ForwardedRef, ReactElement } from "react"; interface BoxProps extends BoxPropsForDocumentation { } export interface InnerTextAreaProps extends DomProps, InteractionStatesProps, AriaLabelingProps { /** * A controlled value. */ value?: string | null; /** * The default value of `value` when uncontrolled. */ defaultValue?: string; /** * Temporary text that occupies the input when it is empty. */ placeholder?: string; /** * Whether or not an element is resizable, and if so, in which directions. See [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/resize). */ resize?: "vertical" | "none"; /** * Whether a user input is required before form submission. */ required?: boolean; /** * Whether or not the input should display as "valid" or "invalid". */ validationState?: "valid" | "invalid"; /** * Called when the input value change. * @param {ChangeEvent} event - React's original synthetic event. * @param {string} value - The input value. * @returns {void} */ onValueChange?: (event: ChangeEvent, value: string) => void; /** * @ignore */ onChange?: ChangeEventHandler; /** * The type of the input. See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input). */ type?: "text" | "password" | "search" | "url" | "tel" | "email"; /** * Whether or not the input should autofocus on render. */ autoFocus?: number | boolean; /** * [Button](/?path=/docs/button--default-story) component rendered after the value. */ button?: ReactElement; /** * Whether or not the input take up the width of its container. */ fluid?: boolean; /** * Whether or not to render a loader. */ loading?: boolean; /** * The number of visible text lines. */ rows?: number; /** * The maximum number of visible text lines before displaying a scrollbar. */ maxRows?: number; /** * Additional props to render on the wrapper element. */ wrapperProps?: Partial; /** * @ignore */ disabled?: boolean; /** * @ignore */ readOnly?: boolean; /** * An HTML element type or a custom React element type to render as. */ as?: ElementType; /** * @ignore */ forwardedRef: ForwardedRef; } export declare function InnerTextArea(props: InnerTextAreaProps): JSX.Element; export declare const TextArea: import("../../shared").OrbitComponent; export declare type TextAreaProps = ComponentProps; export {};