Skip to content

Number Input

Last updated 6 Nov 2026

NbNumberInput is a numeric field with built-in stepper buttons (− and +). It shares the same design language as NbTextInput and NbSelect, with default and fluid variants.

vue
<template>
  <NbNumberInput v-model="quantity" label="Quantity" :min="1" :max="10" />
</template>

<script setup lang="ts">
import { ref } from 'vue'
const quantity = ref(1)
</script>

Validation states ​

Disabled ​

Content ​

  • The label carries the unit when the field does not show one: Timeout (seconds), Width (px).
  • An error names the constraint with its number: Enter a number from 1 to 100. Not Invalid value.
  • The stepper buttons are named Decrease and Increase by default. Translate them through the strings catalogue, not per field.

Casing, punctuation and tone are set library-wide, not by this component: Writing style is the source.