import * as React from 'react'; import type { HasAlign, HasDataAttribute, HasRootRef } from '../../types'; import { type FormFieldProps } from '../FormField/FormField'; export interface TextareaProps extends Pick, 'autoComplete' | 'autoCapitalize' | 'autoCorrect' | 'cols' | 'dirName' | 'disabled' | 'maxLength' | 'minLength' | 'name' | 'placeholder' | 'readOnly' | 'required' | 'rows' | 'value' | 'wrap' | 'form' | 'onChange' | 'onFocus' | 'onBlur'>, Omit, 'onChange' | 'onFocus' | 'onBlur'>, HasRootRef, HasAlign, FormFieldProps { /** * @deprecated Since 7.9.0. Вместо этого используйте `slotProps={ textArea: { getRootRef: ... } }`. */ getRef?: React.Ref | undefined; /** * Свойства, которые можно прокинуть внутрь компонента: * - `root`: свойства для прокидывания в корень компонента; * - `textArea`: свойства для прокидывания в поле ввода. */ slotProps?: { root?: (React.HTMLAttributes & HasRootRef & HasDataAttribute) | undefined; textArea?: React.TextareaHTMLAttributes & HasRootRef & HasDataAttribute; } | undefined; /** * Свойство управляющее автоматическим изменением высоты компонента. */ grow?: boolean | undefined; /** * Обработчик, срабатывающий при изменении размера компонента. */ onResize?: ((el: HTMLTextAreaElement) => void) | undefined; /** * Значение по умолчанию. */ defaultValue?: string | undefined; } /** * @see https://vkui.io/components/textarea */ export declare const Textarea: ({ status, mode, after, before, afterAlign, beforeAlign, maxHeight, grow, onResize, align, getRef, autoComplete, autoCapitalize, autoCorrect, cols, dirName, disabled, maxLength, minLength, name, placeholder, readOnly, required, value: valueProp, wrap, rows, form, onChange: onChangeProp, onFocus, onBlur, id, inputMode, defaultValue, autoFocus, tabIndex, spellCheck, slotProps, ...restProps }: TextareaProps) => React.ReactNode; //# sourceMappingURL=Textarea.d.ts.map