Number Input API

Properties

Name Description Type Required Default value
value Sets the default value integer 0
disabled Sets disabled state boolean false
invalid Sets invalid state boolean false
size Sets size of the input "small" | "medium" | "large"
integer Only integer numbers can be used as input boolean false
min Sets the minimum value integer
max Sets the maximum value integer
step Sets the step size number 1
default-value The input falls back to this value if empty number null

Events

Event Description Returns
change Fires on blur { detail: { value: [value], } }
input Fires on input change { detail: { value: [value], } }
error Fires on blur if value is not valid (value is not numeric or out of min and max boundaries) { detail: { message: "Value is not valid!", } }