
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
v-range-slider
Advanced tools
Simple slider component of Vue.js
input[type="range"]
behaviorinput
, change
event supportVue >= 2.0
npm install --save v-range-slider
Import the v-range-slider component and use it in your components, such as:
<template>
<range-slider
min="10"
max="1000"
step="10"
v-model="sliderValue">
</range-slider>
</template>
<script>
import RangeSlider from 'v-range-slider'
export default {
data () {
return {
sliderValue: 50
}
},
components: {
RangeSlider
}
}
</script>
<style>
/* in case you need to import the built-in styles */
@import '~v-range-slider/dist/v-range-slider.css';
</style>
name
- name of the slider input.value
- current value of the slider.disabled
- if true, the slider value cannot be updated.min
- minimum value of the slider.max
- maximum value of the slider.step
- granularity of the slider value. e.g. if this is 3, the slider value will be 3, 6, 9, ...no-calibration
- turn off calibrationcalibration-count
- determines how steps to split calibration into e.g. a min of 0 and max of 10 with a calibration count of 5 will use display 0, 2, 4, 6, 8, 10
no-popover
- turn off popover functionalityknob
- slot for replacing knobpopover
- slot for replacing popoverMIT
FAQs
Range slider component for Vue JS
The npm package v-range-slider receives a total of 127 weekly downloads. As such, v-range-slider popularity was classified as not popular.
We found that v-range-slider demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.