import * as React from "react"; import { InputAppearance } from "../../shared/types/inputAppearance"; export interface TextareaProps extends React.HTMLProps { /** * Unique identifier used for the form textarea element */ id?: string; /** * Sets the current appearance of the component. This defaults to InputAppearance.Standard, but supports `InputAppearance.Error` & `InputAppearance.Success` appearances as well. */ appearance?: InputAppearance; /** * Sets the contents of the label. This can be a `string` or any `ReactNode`. */ inputLabel?: React.ReactNode; /** * Defaults to `true`, but can be set to `false` to visibly hide the `Textarea`'s label. The `inputLabel` should still be set even when hidden for accessibility support. */ showInputLabel?: boolean; /** * Text or a ReactNode that is displayed directly under the textarea with additional information about the expected input. */ hintContent?: React.ReactNode; /** * Sets the contents for validation errors. This will be displayed below the textarea element. Errors are only visible when the `Textarea` appearance is also set to `InputAppearance.Error`. */ errors?: React.ReactNode[]; /** * Sets the text content for the tooltip that can be displayed above the input. */ tooltipContent?: React.ReactNode; } declare const _default: ({ id, appearance, inputLabel, showInputLabel, errors, hintContent, tooltipContent, value, rows, required, disabled, ...other }: TextareaProps) => JSX.Element; export default _default;