Skip to content

Textarea

Multi-line text input, with auto height and a character count.

Examples

0/100

Textarea

API

Props

属性说明类型默认值
valueCurrent valuestring-
placeholderPlaceholder textstring-
maxlengthMax length; -1 for unlimitednumber-1
disabledWhether disabledbooleanfalse
auto-heightAuto-grow heightbooleanfalse
focusAuto-focusbooleanfalse

Events

属性说明类型默认值
inputFired on input{ value, cursor }-
focusFired on focus{ value }-
blurFired on blur{ value }-
confirmFired on Enter{ value }-
linechangeFired when line count changes (with auto-height){ height, lineCount }-

MiniDev Studio — Mini-app Development Toolkit