0.0.7 • Published 3 years ago

vue-gradient-slider v0.0.7

Weekly downloads
30
License
-
Repository
-
Last release
3 years ago

Vue Gradient Slider

Install

npm install vue-gradient-slider
# or
yarn add vue-gradient-slider

Demo

See Demo Site

Usage

<GradientSlider v-model="colors" @select="selectKnob" />
import GradientSlider from 'vue-gradient-slider'

export default {
  components: {
    GradientSlider
  },
  data: () => ({
    selectedKnob: 0,
    colors: [
      {
        position: 0.12,
        color: "#FF00AA",
      },
      {
        position: 0.46,
        color: "#A300FF",
      },
      {
        position: 0.84,
        color: "#00AAFF",
      },
    ],
  }),
  methods: {
    selectKnob(value) {
      this.selectedKnob = value;
    },
  },
};
0.0.5

3 years ago

0.0.4

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago