Slider

An input where the user selects a value from within a given range.

Installation

bash
npx shadcn-vue@latest add slider

Usage

vue
<script setup lang="ts">
import { Slider } from '@/components/ui/slider'
</script>

<template>
  <Slider
    :default-value="[33]" :max="100" :step="1"
  />
</template>

Examples

Form

How many minutes are you available?30 min

Edit this page on GitHub