Skip to content

InputNumber

Numeric input with stepper buttons, min/max, step, and precision.

Basic usage

Example

With precision and step

API

Props

NameTypeDefaultDescription
valueInputNumberValuenull
labelstring""
placeholderstring""
disabledbooleanfalse
readonlybooleanfalse
borderedbooleantrue
minunionnull
maxunionnull
stepnumber1
precisionunionnull
controlsbooleantrue
assistiveTextstring""
alertMessagestring""
stateDataEntryState"default"
sizeEpSizeundefined

Events

EventPayloadDescription
update:value{"names":["InputNumberValue"]}
change{"names":["InputNumberValue"]}
enter{"names":["InputNumberValue"]}
focus{"names":["FocusEvent"]}
blur{"names":["FocusEvent"]}

Slots

This component has no named slots.

Released under the MIT License. Built with VitePress.