Skip to content

Number inputs

The VNumberInput extends the standard HTML number-type input, ensuring style consistency across browsers as a replacement for <input type="number">

WARNING

This feature requires v3.5.10

Installation

Labs components require a manual import and installation of the component.

js
import { VNumberInput } from 'vuetify/labs/VNumberInput'

export default createVuetify({
  components: {
    VNumberInput,
  },
})

Usage

Here we display a list of settings that could be applied within an application.

API

ComponentDescription
v-number-inputPrimary Component

Guide

The v-number-input component is built upon the v-field and v-input components. It is used as a replacement for <input type="number">, accepting numeric values from the user.

Props

The v-number-input component has support for most of v-field's props and is follows the same design patterns as other inputs.

Control-variant

The control-variant prop offers an easy way to customize steppers button layout. The following values are valid options: default, stacked and split.

Reverse

The reverse prop automatically changes the stepper buttons' position to the opposite side for both the default and stacked control variants.

Hide-input

The hide-input prop hides the input field, allowing only the stepper buttons to be visible. These stepper buttons follow a stacked control-variant layout.

Inset

The inset prop adjusts the style of the stepper buttons by reducing the size of the button dividers.

Min/Max

The min and max props specify the minimum and maximum values accepted by v-number-input, behaving identically to the native min and max attributes for <input type="number">.

Step

The step prop behaves the same as the step attribute in the <input type="number">, it defines the incremental steps for adjusting the numeric value.

Released under the MIT License.