Prop | Default | Type |
---|---|---|
as | 'div' | AsTag | Component The element or component this component should render as. Can be overwritten by |
asChild | boolean Change the default rendered element for the one passed as a child, merging their props and behavior. Read our Composition guide for more details. | |
defaultValue | number | |
disabled | boolean When | |
disableWheelChange | boolean When | |
formatOptions | NumberFormatOptions Formatting options for the value displayed in the number field. This also affects what characters are allowed to be typed by the user. | |
id | string Id of the element | |
invertWheelChange | boolean When | |
locale | string The locale to use for formatting dates | |
max | number The largest value allowed for the input. | |
min | number The smallest value allowed for the input. | |
modelValue | number | null | |
name | string The name of the field. Submitted with its owning form as part of a name/value pair. | |
readonly | boolean When | |
required | boolean When | |
step | 1 | number The amount that the input value changes with each increment or decrement "tick". |
stepSnapping | true | boolean When |
Emit | Payload |
---|---|
update:modelValue | [val: number] Event handler called when the value changes. |
Slots (default) | Payload |
---|---|
modelValue | number | undefined |
textValue | string |