UNPKG

@tarojsx/ui

Version:

We reinvents the UI for Taro3+

18 lines (17 loc) 739 B
import React from 'react'; import { CommonEventFunction } from '@tarojs/components'; import { AtTextareaProps } from 'taro-ui/types/textarea'; import { TextareaEnhanceProps } from './TextareaEnhance'; import '../style/Textarea.scss'; export interface TextareaProps extends Omit<TextareaEnhanceProps, 'className' | 'value' | 'focus' | 'onInput'>, Pick<AtTextareaProps, 'count' | 'height' | 'textOverflowForbidden'> { className?: string; style?: React.CSSProperties; textareaRef?: React.LegacyRef<any>; value?: string; /** * 最大输入长度,设置为 -1 的时候不限制最大长度 */ maxLength?: number; onChange?: CommonEventFunction; } export declare const Textarea: React.FC<TextareaProps>;