import type { Ref, TextareaHTMLAttributes } from 'react'; import type { FieldBlockProps } from '../field-block'; import type { BaseInputAsTextareaProps } from '../base-input'; type HTMLTextareaProps = Pick, 'autoComplete' | 'autoFocus' | 'defaultValue' | 'disabled' | 'id' | 'name' | 'onBlur' | 'onChange' | 'onFocus' | 'onInput' | 'placeholder' | 'readOnly' | 'required' | 'rows' | 'value'>; export interface TextareaProps extends HTMLTextareaProps, FieldBlockProps { /** Ref элемента textarea. */ textareaRef?: Ref; /** Свойства BaseInputProps. */ baseInputProps?: Omit; /** Стили корневого элемента. */ style?: Required['rootProps']['style']; /** CSS-класс корневого элемента. */ className?: Required['rootProps']['className']; } export {};