Skip to content
PropDefaultType
as
'div'
AsTag | Component

The element or component this component should render as. Can be overwritten by asChild.

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 true, prevents the user from interacting with the Number Field.

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

locale
'en-US'
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
name
string

The name of the number field. Submitted with its owning form as part of a name/value pair.

required
boolean

When true, indicates that the user must set the value before the owning form can be submitted.

step
1
number

The amount that the input value changes with each increment or decrement "tick".

EmitPayload
update:modelValue
[val: number]

Event handler called when the value changes.

Slots (default)Payload
modelValue
number
textValue
string