import * as React from 'react'; import { GetClasses } from '../../typeUtils'; import { BaseFormElement } from '../_private/forms'; export declare const TextAreaStylesKey = "ChromaTextArea"; export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"label" | "textarea" | "root" | "fullWidth" | "required" | "labelInverse" | "srOnly" | "requiredInverse" | "tooltipContainer" | "labelSecondary" | "labelIcon" | "labelIconInverse" | "message" | "textareaInverse" | "textareaError">; export declare type TextAreaClasses = GetClasses; export interface TextAreaProps extends React.ComponentPropsWithoutRef<'textarea'> { color?: BaseFormElement['color']; hasError?: BaseFormElement['hasError']; errorMessage?: BaseFormElement['errorMessage']; helpMessage?: BaseFormElement['helpMessage']; label?: BaseFormElement['label']; fullWidth?: boolean; secondaryLabel?: string; icon?: React.MemoExoticComponent<(props: React.SVGProps) => JSX.Element>; tooltipMessage?: string; textAreaClassName?: string; /** This property shows the required asterisk (*). Required validation needs to be implemented separately. */ showRequiredLabel?: boolean; } /** * An textarea component for form usage. * * ### Accessibility * * - The label and textarea are "connected" via a uniqueId and the `for` + `id` * attributes. * - The label has the `aria-hidden` attribute so it cannot be focused by * screenreaders. Instead, the textarea element receives the focus, and the label * is read as part of the textarea. * - The component uses a uniqueId to link the textarea to the help and error * messages via `aria-describedby`. This allows screenreaders to read the help * and error messages. * - The icon has `aria-hidden` and `role="img"` attributes. * * ### Links * * - [Component Source](https://github.com/lifeomic/chroma-react/blob/master/src/components/TextArea/TextArea.tsx) * - [Story Source](https://github.com/lifeomic/chroma-react/blob/master/stories/components/TextArea/TextArea.stories.tsx) */ export declare const TextArea: React.ForwardRefExoticComponent>;