defaultValue number — Name defaultValue Description The number the field starts with when uncontrolled.
Type number Default — modelValue number | null — Name modelValue Description The number, bound with v - model .
Type null | number Default — min number — Name min Description The smallest value allowed for the input.
Type number Default — max number — Name max Description The largest value allowed for the input.
Type number Default — step number 1 Name step Description The amount that the input value changes with each increment or decrement "tick".
Type number Default 1 stepSnapping boolean true Name stepSnapping Description When false , prevents the value from snapping to the nearest increment of the step value
Type boolean Default true allowInvalid boolean false Name allowInvalid Description When true , a typed value is kept as-is even if invalid (out of min /max range or off the step grid); step interactions still clamp and snap. The field does not flag the value as invalid (no aria - invalid /data - invalid ), so validating and surfacing the error is up to the consumer.
Type boolean Default false focusOnChange boolean true Name focusOnChange Description When true , the input will be focused when the value changes.
Type boolean Default true formatOptions Intl . NumberFormatOptions — Name formatOptions Description Formatting options for the value displayed in the number field. This also affects what characters are allowed to be typed by the user.
Type Intl . NumberFormatOptions Default — locale string — Name locale Description The locale to use for formatting and currencies
Type string Default — disabled boolean false Name disabled Description When true , prevents the user from interacting with the Number Field.
Type boolean Default false readonly boolean false Name readonly Description When true , the Number Field is read-only.
Type boolean Default false disableWheelChange boolean false Name disableWheelChange Description When true , prevents the value from changing on wheel scroll.
Type boolean Default false invertWheelChange boolean false Name invertWheelChange Description When true , inverts the direction of the wheel change.
Type boolean Default false id string — Name id Description Type string Default — startingValue number — Name startingValue Description The value the first increment or decrement sets when the field is empty. It is clamped to min /max but not snapped to step . Defaults to min , or 0 when min is not set.
Type number Default — asChild boolean false Name asChild Description Change the default rendered element for the one passed as a child, merging their props and behavior.
Read Reka UI's Composition guide for more details.
Type boolean Default false as AsTag | Component 'div' Name as Description The element or component this component should render as. Can be overwritten by asChild .
Type ComponentOptions < any , any , any , ComputedOptions , MethodOptions , any , any , any , string , {} , {} , string , {} , {} , {} , string , ComponentProvideOptions > | ( props : any , ctx : Omit <{ attrs : Attrs ; slots : Readonly < InternalSlots > ; emit : ( event : string , ... args : any []) => void ; expose : < Exposed extends Record < string , any > = Record < string , any >>( exposed ?: Exposed | undefined ) => void ; } , 'expose' >) : any | ComponentPublicInstanceConstructor < any , any , any , any , ComputedOptions , MethodOptions > | 'a' | 'button' | 'div' | 'form' | 'h2' | 'h3' | 'img' | 'input' | 'label' | 'li' | 'nav' | 'ol' | 'p' | 'span' | 'svg' | 'ul' | 'template' | {} & string Default 'div' name string — Name name Description The name of the field. Submitted with its owning form as part of a name/value pair.
Type string Default — required boolean false Name required Description When true , indicates that the user must set the value before the owning form can be submitted.
Type boolean Default false class ClassValue — Name class Description Classes added to the part's own element, after its recipe classes.
Type null | string | false | Record < string , any > | ClassValue [] Default —