Skip to content

NumberInput ​

Numeric stepper with decrement and increment buttons flanking a centered input.

Basic usage ​

Tailwind v4
vue
<NumberInput v-model="count" />

With min and max ​

The value is clamped within the provided range. The corresponding button is disabled when the boundary is reached.

Tailwind v4
vue
<NumberInput v-model="count" :min="1" :max="10" />

Custom step ​

Tailwind v4
vue
<NumberInput v-model="value" :min="0" :max="100" :step="5" />

Error state ​

Tailwind v4
vue
<NumberInput v-model="qty" :min="1" :error="errors.qty" />

Hint text ​

Tailwind v4
vue
<NumberInput v-model="qty" :min="1" :max="99" hint="Max 99 items per order" />

Disabled ​

Tailwind v4
vue
<NumberInput v-model="count" :disabled="true" />

Props ​

PropTypeDefaultDescription
modelValuenumber—Current value (use with v-model)
minnumber—Minimum allowed value
maxnumber—Maximum allowed value
stepnumber1Amount to increment/decrement per click
disabledbooleanfalseDisables the stepper
errorstring—Error message below the input
hintstring—Hint text below the input

Events ​

EventPayloadDescription
update:modelValuenumberEmitted on button click or direct input (clamped to range)

Private — Jetpack Labs internal use only