| Prop | Default | Type |
|---|---|---|
as | 'div' | AsTag | ComponentThe element or component this component should render as. Can be overwritten by |
asChild | booleanChange 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 | booleanWhen | |
disableWheelChange | booleanWhen | |
formatOptions | NumberFormatOptionsFormatting options for the value displayed in the number field. This also affects what characters are allowed to be typed by the user. | |
id | stringId of the element | |
invertWheelChange | booleanWhen | |
locale | stringThe locale to use for formatting dates | |
max | numberThe largest value allowed for the input. | |
min | numberThe smallest value allowed for the input. | |
modelValue | number | null | |
name | stringThe name of the field. Submitted with its owning form as part of a name/value pair. | |
readonly | booleanWhen | |
required | booleanWhen | |
step | 1 | numberThe amount that the input value changes with each increment or decrement "tick". |
stepSnapping | true | booleanWhen |
| Emit | Payload |
|---|---|
update:modelValue | [val: number]Event handler called when the value changes. |
| Slots (default) | Payload |
|---|---|
modelValue | number | undefined |
textValue | string |
