import React from 'react'; import { CommonProps } from '../Element/Element'; import { CreateProps } from '../../types/utils/CreateProps'; import 'focus-within-polyfill'; declare type TextAreaProps = CreateProps<{ /** Label shown on the textArea */ label: string; /** Error text shown below the textArea to indicate the errorneous state */ errorText?: string; /** Additional description for input, if label is not enough */ helperText?: string; /** Sets the textarea in readonly state. Textarea is clickable and focusable but user can't type in it */ readonly?: boolean; /** OnChange handler for the input */ onChange?: (event: React.ChangeEvent, value: string) => void; }, CommonProps<'textarea'>>; export declare type TextAreaAttributes = TextAreaProps; declare const TextArea: React.FunctionComponent; export default TextArea;