UNPKG

@mijadesign/mjui-react-taro

Version:

京东风格的轻量级移动端 React 组件库,支持一套代码生成 H5 和小程序

19 lines (18 loc) 730 B
import React, { FunctionComponent } from 'react'; import type { 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'>>;