31 lines
1.1 KiB
TypeScript
31 lines
1.1 KiB
TypeScript
|
import React from 'react';
|
||
|
import type { TextAreaRef } from './interface';
|
||
|
declare const TextArea: React.ForwardRefExoticComponent<Omit<import("./interface").HTMLTextareaProps, "onResize" | "value"> & {
|
||
|
value?: string | number | bigint | readonly string[];
|
||
|
prefixCls?: string;
|
||
|
className?: string;
|
||
|
style?: React.CSSProperties;
|
||
|
autoSize?: boolean | import("./interface").AutoSizeType;
|
||
|
onPressEnter?: React.KeyboardEventHandler<HTMLTextAreaElement>;
|
||
|
onResize?: (size: {
|
||
|
width: number;
|
||
|
height: number;
|
||
|
}) => void;
|
||
|
classNames?: {
|
||
|
affixWrapper?: string;
|
||
|
prefix?: string;
|
||
|
suffix?: string;
|
||
|
groupWrapper?: string;
|
||
|
wrapper?: string;
|
||
|
variant?: string;
|
||
|
} & {
|
||
|
textarea?: string;
|
||
|
count?: string;
|
||
|
};
|
||
|
styles?: {
|
||
|
textarea?: React.CSSProperties;
|
||
|
count?: React.CSSProperties;
|
||
|
};
|
||
|
} & Pick<import("rc-input/lib/interface").BaseInputProps, "allowClear" | "suffix"> & Pick<import("rc-input").InputProps, "showCount" | "count" | "onClear"> & React.RefAttributes<TextAreaRef>>;
|
||
|
export default TextArea;
|