Skip to content

s-sasaki-0529/vue-slider-component

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

banner

license

๐ŸŽš A highly customized slider component

This repository is forked from NightCatSame/vue-slider-component (v3.2.10) and rewritten to work with Vue 3.

Please note that specifications may differ from the original.

๐ŸŽฏ install

$ yarn add vue-3-slider-component
# npm install vue-3-slider-component --save

โœจ Features

  • ๐Ÿ› ๏ธ More customizable
  • ๐Ÿณ Support for more sliders
  • ๐Ÿ“Œ Add marks

๐Ÿ“š Documentation

Storybook

๐Ÿš€ Usage

<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

<template>
  <VueSlider v-model="value" />
</template>

<script>
import VueSlider from 'vue-3-slider-component'

export default {
  components: {
    VueSlider
  },
  data () {
    return {
      value: 0
    }
  }
}
</script>

License

Licensing is in accordance with the original.

MIT

Packages

No packages published

Languages

  • TypeScript 62.3%
  • Vue 30.6%
  • SCSS 5.3%
  • JavaScript 1.4%
  • Other 0.4%