@nutui/nutui-react-taro
Version:
京东风格的轻量级移动端 React 组件库,支持一套代码生成 H5 和小程序
18 lines (17 loc) • 712 B
TypeScript
import { default as React, FunctionComponent, FocusEvent } from 'react';
import { BasicComponent } from '../../utils/typings';
export interface TextAreaProps extends BasicComponent {
value: string;
defaultValue: string;
showCount: boolean;
maxLength: number;
rows: number;
placeholder: string;
readOnly: boolean;
disabled: boolean;
autoSize: boolean;
onChange: (value: string) => void;
onBlur: (event: FocusEvent<HTMLTextAreaElement>) => void;
onFocus: (event: FocusEvent<HTMLTextAreaElement>) => void;
}
export declare const TextArea: FunctionComponent<Partial<TextAreaProps> & Omit<React.HTMLAttributes<HTMLTextAreaElement>, 'onChange' | 'onBlur' | 'onFocus'>>;