import { FieldAriaProps, FormError } from '../../types'; import { default as React } from 'react'; /** Properties from the native textarea element that we want to expose in our component */ type ExposedTextareaProps = 'id' | 'value' | 'onChange' | 'onFocus' | 'onBlur' | 'placeholder' | 'required' | 'disabled' | 'maxLength' | 'name' | 'rows'; /** * Props interface for the Textarea component * @extends {Pick, ExposedTextareaProps>} */ export default interface ITextareaProps extends Pick, ExposedTextareaProps>, FormError, FieldAriaProps { /** * Label text to display above the textarea * @deprecated Use `` with `` instead. Will be removed in a future major version. */ label?: string; /** * Description text to display below the textarea * @deprecated Use `` with `` instead. Will be removed in a future major version. */ description?: string; } export {};