1 | import * as React from 'react';
|
2 | type TextareaProps = React.TextareaHTMLAttributes<HTMLTextAreaElement>;
|
3 | type Style = Omit<NonNullable<TextareaProps['style']>, 'maxHeight' | 'minHeight'> & {
|
4 | height?: number;
|
5 | };
|
6 | export type TextareaHeightChangeMeta = {
|
7 | rowHeight: number;
|
8 | };
|
9 | export interface TextareaAutosizeProps extends Omit<TextareaProps, 'style'> {
|
10 | maxRows?: number;
|
11 | minRows?: number;
|
12 | onHeightChange?: (height: number, meta: TextareaHeightChangeMeta) => void;
|
13 | cacheMeasurements?: boolean;
|
14 | style?: Style;
|
15 | }
|
16 | declare const _default: React.ForwardRefExoticComponent<TextareaAutosizeProps & React.RefAttributes<HTMLTextAreaElement>>;
|
17 | export default _default;
|