vue-3-slider-component
Version:
A highly customized slider component for Vue 3
76 lines (53 loc) • 1.56 kB
Markdown

[]()
> 🎚 A highly customized slider component
This repository is forked from [NightCatSame/vue-slider-component](https://github.com/NightCatSama/vue-slider-component) (v3.2.10) and rewritten to work with Vue 3.
Please note that specifications may differ from the original.
```bash
$ yarn add vue-3-slider-component
```
- 🛠️ More customizable
- 🐳 Support for more sliders
- 📌 Add marks
[ ](https://vue-3-slider-component.netlify.app/?path=/docs/vue-3-slider-component--vue-3-slider-component)
```vue
<script setup lang="ts">
import { ref } from "vue";
import VueSlider from "vue-3-slider-component";
const value = ref(0);
</script>
<template>
<div>
<VueSlider v-model="value" />
<p>Value: {{ value }}</p>
</div>
</template>
```
Also available in the Options API
```vue
<template>
<VueSlider v-model="value" />
</template>
<script>
import VueSlider from 'vue-3-slider-component'
export default {
components: {
VueSlider
},
data () {
return {
value: 0
}
}
}
</script>
```
Licensing is in accordance with the original.
[ ](https://github.com/NightCatSama/vue-slider-component/blob/master/LICENSE)