Skip to main content

Number Input API

Properties
NameTypeDefaultDescription
valueinteger0Default value of the input.
disabledbooleanfalseDisables the input.
readonlybooleanfalseSets the read-only state.
invalidbooleanfalseSets the invalid (error) state.
size"small" | "medium" | "large"Size of the input.
integerbooleanfalseRestricts input to integer numbers only.
minintegerMinimum allowed value.
maxintegerMaximum allowed value.
stepnumber1Step size for increment and decrement.
default-valuenumbernullFallback value used when the input is empty.
Events
EventDescriptionReturns
changeFires on blur.{ detail: { value } }
inputFires on each input change.{ detail: { value } }
errorFires on blur when the value is non-numeric or outside the min/max range.{ detail: { message: string } }