import * as React from "react"; import type { MergeElementProps } from "../typings"; interface TextAreaBaseProps { /** * Append to the classNames applied to the component so you can override or * extend the styles. */ className?: string; /** The name of the textarea. */ name?: string; /** The `placeholder` property of the textarea. */ placeholder?: string; /** * The value of the textarea. The DOM API casts this to a string. */ value?: string; /** * The default value. Use when the component is not controlled. */ defaultValue?: string; /** The helper text content. */ helperText?: string; /** The helper icon element placed before the helper text. */ helperIcon?: React.ReactNode; /** * Maximum number of rows to display. */ maxRows?: number; /** * Minimum number of rows to display. */ minRows?: number; /** * If `true`, the textarea will automatically adjust the height. * @default false */ autoResize?: boolean; /** * If `true`, the textarea will be vertically resizable. * @default false */ resizable?: boolean; /** * If `true`, the textarea will be readOnly. * @default false */ readOnly?: boolean; /** * If `true`, the textarea will be focused. * @default false */ focused?: boolean; /** * If `true`, the textarea will be focused on mount. * @default false */ autoFocus?: boolean; /** * If `true`, the textarea will fill the entire width of the parent. * @default false */ fluid?: boolean; /** * If `true`, the textarea will be disabled. * @default false */ disabled?: boolean; /** * If `true`, the textarea will be required. * @default false */ required?: boolean; /** * If `true`, the textarea will indicate invalid input. * @default false */ hasError?: boolean; /** * The size of the textarea. * @default "medium" */ size?: "large" | "medium" | "small"; /** The properties applied to the `input` element. */ inputProps?: Omit, "value" | "checked" | "defaultChecked" | "defaultValue" | "onChange" | "onBlur" | "onFocus">; /** * The Callback fires when the state has changed. */ onChange?: (value: string) => void; /** * The Callback fires when the textarea has received focus. */ onFocus?: (event: React.FocusEvent) => void; /** * The Callback fires when the textarea has lost focus. */ onBlur?: (event: React.FocusEvent) => void; } export declare type TextAreaProps = Omit, "defaultChecked">; declare type Component = { (props: TextAreaProps): React.ReactElement | null; propTypes?: React.WeakValidationMap | undefined; displayName?: string | undefined; }; declare const TextArea: Component; export default TextArea;