npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

vue-dual-range-slider

v1.0.3

Published

Dual range slider

Downloads

13

Readme

Vue dual range slider

Vue Dual Range Slider is a component written in Vue that allows you to easily select ranges of values. Ideal for applications where the user needs to specify a range, such as in filters, forms or interactive charts.

Installation

npm install vue-dual-range-slider

Props

|Prop|Type|Default|Description| |---|---|---|---| |minValue|Number|0|Minimal value on slider| |maxValue|Number|100|Maximal value on slider| |precision|Number|1|Sets maximal number of digits after decimal separator| |dynamicEmit|Boolean|true|Enables emiting values during slider drag| |startingMinValue|Number|null|Initial position of "minimal value slider" in default it is the same as minValue| |startingMaxValue|Number|null|Initial position of "max value slider" in default it is the same as maxValue| |timemode|Boolean|false|Changes displayed values into colon spearated time values| |timeBaseUnit|TimeUnit|second|Defines input and output time unit| |timeSmallestShownUnit|TimeUnit|second|Defines smallest unit that is shown| |mainColor|String|#a3e635|Color of bar that is always beetwen two sliders| |secondaryColor|String|#94a3b8|Color of background bar| |inputRadius|String|5px|Rounding of input fields| |inputBackgroundColor|String|white|Background color of input field| |inputTextColor|String|black|Input text color|

TimeUnit

Each way of declaring TimeUnit is recognised. Names and shortcut names are not case sensitive.

|Name|Shortcut name|Numeric value| |---|---|---| |millisecond|ms|1| |second|s|2| |minute|m|3| |hour|h|4| |day|d|5|

Events

|Name|Datatype|Description| |---|---|---| |changed|Number[]|Returns an array of two numbers: the first corresponds to the left slider, and the second to the right slider.|

Exposed methods

|Method|Arguments|Description| |---|---|---| |setMin|value: number|Sets value of left slider |setMax|value: number|Sets value of right slider |resetValues||Resets values to default

Example usage

<template>
  min: {{ min }} max: {{ max }}
  <vue-dual-range-slider @changed="(value) => handleChange(value)" />
</template>

<script setup lang="ts">
import { VueDualRangeSlider } from 'vue-dual-range-slider';
import 'vue-dual-range-slider/dist/vue-dual-range-slider.css'
import { ref } from 'vue'

const min = ref(0)
const max = ref(100)

const handleChange = (newValues: number[]) => {
  min.value = newValues[0]
  max.value = newValues[1]
}
</script>