Input (输入框)

文本输入框(v-model),带标签、辅助 / 错误文本与尺寸。

基础用法

Helper text below the field.

Basic.vue

尺寸

Sizes.vue

状态

This field is required.

States.vue

可清除与密码

Clearable.vue

前后缀

带前缀图标

$
USD

带后缀单位

Affix.vue

属性

属性类型默认值说明
autofocusbooleanfalse
classNamestring""
colorKunUIColor"default"
darkBorderbooleantrue
descriptionstring""
disabledbooleanfalse
errorstring""
helperTextstring""
isClearablebooleanfalse
isInvalidbooleanfalse
labelstring""
modelValuestring | number""
placeholderstring""
requiredbooleanfalse
revealPasswordbooleanfalse
roundedKunUIRoundedundefined
sizeKunUISize"md"
typestring"text"