Skip to content

Slider

Last updated 6 Nov 2026

NbSlider is a draggable range input with an optional NbNumberInput companion. It supports single-value and two-handle range modes.

vue
<template>
  <NbSlider v-model="volume" label="Volume" :min="0" :max="100" />
</template>

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

Without number input ​

Hide the companion input when screen space is tight or the precise value is not important.

Validation states ​