import { 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'; /** * Props interface for the Textarea component * @extends {Pick, ExposedTextareaProps>} */ export default interface ITextareaProps extends Pick, ExposedTextareaProps>, FormError { /** Label text to display above the textarea */ label?: string; /** Description text to display below the textarea */ description?: string; } export {};