Number Field
An input specifically tailored for numbers, featuring integrated stepper buttons and strict mathematical snap-to-step validation.
Default
A clean, integrated numeric spinner.
Step Increments
Set a custom step value. The input snaps to these increments.
Disabled State
Read-only mode.
Input Group
Collapse borders and combine inputs with buttons or other inputs horizontally.
Input with Action
Merging an input with a send button.
Double Input
Grouping multiple inputs.
MayaNumberField Props API
| Prop / Event | Type | Default | Description |
|---|---|---|---|
modelValue | Number | 0 | The numeric value of the field. Used with v-model. |
min | Number | -Infinity | The minimum allowed value. |
max | Number | Infinity | The maximum allowed value. |
step | Number | 1 | The step increment/decrement amount. |
disabled | Boolean | false | Whether the number field is disabled. |
@update:modelValue | Event | — | Emitted when the numeric value changes. |