Skip to content

Input Number

Basic usage

Disabled

The disabled attribute accepts a boolean, and if the value is true

Max, Min

you can add min attribute to set the minimum value and max to set the maximum value.

Step

Allows you to define incremental steps. Add step attribute to set the step.

Borderless

Precision

Size

Use attribute size to set additional sizes with large or small.

Input Number API

Input Number Attributes

NameDescriptionTypeDefaultVersion
value(v-model)binding valuestring
maxthe maximum allowed valuenumberInfinity
minthe minimum allowed valuenumber-Infinity
stepincremental stepnumber1
placeholderplaceholder of Input Numberstring
disabledwhether Input is disabledbooleanfalse
sizesize of Input Numberlarge | default | small
precisionprecision of input valuenumber
borderedNo borderbooleanfalse

Input Number Events

NameDescriptionType
changetriggers when the value changes(value: number) => void

Contributors

lazy

ChangeLog

2253f - style: 删除多余样式 on 3/13/2025
1bfea - fix: 修正无边框模式 on 11/21/2023
74b5c - feat: input-number on 11/21/2023

Released under the MIT License.