Skip to content
On this page

Slider

Drag the slider within a fixed range.

Basic Usage

The current value is displayed when the slider is being dragged.

<template>
  <div class="">
    <HcSlider v-model="value" />
  </div>
</template>

<script lang="ts" setup>
import { HcSlider } from '@deeepvision/hope-component-kit';
import { ref } from 'vue';

const value = ref(0);
</script>

Props

PropertyType Values Description Default
modelValueNumber,Number[]NumberNumber[]binding valuefalse
customClassStringStringslider class

Events

PropertyType Values Description Default
update:model-valueFunctionvalue - number | number[]triggers when the value changes (if the mouse is being dragged, this event only fires when the mouse is released)

Created by DeepVision Software.