import { AbstractInputProps } from "../../input"; import { BoxProps } from "../../box"; import { ChangeEvent, ComponentProps, ReactElement } from "react"; import { OmitInternalProps } from "../../shared"; import { ResponsiveProp } from "../../styling"; declare const DefaultElement = "textarea"; export interface InnerTextAreaProps extends AbstractInputProps { /** * [Button](/?path=/docs/button--default-story) component rendered after the value. */ button?: ReactElement; /** * See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#attr-cols). */ cols?: number; /** * The default value of `value` when uncontrolled. */ defaultValue?: string; /** * Whether or not the input take up the width of its container. */ fluid?: ResponsiveProp; /** * Whether or not to render a loader. */ loading?: boolean; /** * The maximum number of visible text lines before displaying a scrollbar. */ maxRows?: number; /** * 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; /** * See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#attr-rows). */ rows?: number; /** * The type of the input. */ type?: "text" | "password" | "search" | "url" | "tel" | "email"; /** * A controlled value. */ value?: string | null; /** * Additional props to render on the wrapper element. */ wrapperProps?: Partial; } export declare function InnerTextArea(props: InnerTextAreaProps): JSX.Element; export declare namespace InnerTextArea { var defaultElement: string; } /** * A textarea is a multi-line plain-text editing control, useful when you want to allow users to enter a sizeable amount of free-form text. * * [Documentation](https://orbit.sharegate.design/?path=/docs/textarea--default-story) */ export declare const TextArea: import("react").ForwardRefExoticComponent, "ref"> & import("react").RefAttributes>; export declare type TextAreaProps = ComponentProps; export {};