Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
vue-range-slider
Advanced tools
Readme
Simple slider component of Vue.js
input[type="range"]
behaviorinput
, change
event supportVue >= 2.0
npm install --save vue-range-slider
yarn add vue-range-slider
Just import vue-range-slider component and use it in your components. The props are compatible with native input[type="range"]
element, so you can use min
, max
, step
etc. like native element.
<template>
<range-slider
class="slider"
min="10"
max="1000"
step="10"
v-model="sliderValue">
</range-slider>
</template>
<script>
import RangeSlider from 'vue-range-slider'
// you probably need to import built-in style
import 'vue-range-slider/dist/vue-range-slider.css'
export default {
data () {
return {
sliderValue: 50
}
},
components: {
RangeSlider
}
}
</script>
<style>
.slider {
/* overwrite slider styles */
width: 200px;
}
</style>
Available props:
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, ...Available slots:
knob
- slot for replacing knobvue-range-slider is built with Sass for its styling. If you want to customize vue-range-slider styles, you can easily do that by configuring Sass variables. Available variables can be seen in the component file.
Example of making the slider knob larger:
// set the variable of the knob size
$knob-size: 30px;
// import the built-in vue-range-slider style
@import '~vue-range-slider/dist/vue-range-slider.scss';
MIT
FAQs
Simple slider component of Vue.js
The npm package vue-range-slider receives a total of 2,561 weekly downloads. As such, vue-range-slider popularity was classified as popular.
We found that vue-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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.