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 🙏

© 2025 – Pkg Stats / Ryan Hefner

vue-slider-with-indicator

v1.0.11

Published

A slider with an indicator for an additional value (e.g. for synths)

Readme

vue-slider-with-indicator

A slider for (e.g.) synths

This is a basic Vue.js slider component which in addition to a standard slider handle has an indicator representing an additional value.

Usage

Import it as you would import a normal component:

import VueSliderWithIndicator from 'vue-slider-with-indicator'

In the template:

<VueSliderWithIndicator 
  v-model="myValue"
  :value="myValue"
  :indicatorPosition="myIndicatorPosition"
  :options="myOptions"
/>

The options prop expects an object. It could look like this:

myOptions {
  init: 50,
  min: 0,
  max: 100,
  step: 1,
  vertical: true,
  direction: 'rtl',
  sliderWidth: '300px',
  sliderHeight: '30px',
  handleWidth: '20px',
  handleHeight: '20px',
  indicatorWidth: '3px',
  indicatorHeight: '25px'
  backgroundColor: '#333',
  handleColor: '#115253',
  indicatorColor: 'rgba(200, 200, 0, 0.8)'
}

Each property can be omitted, defaulting to the value specified below.

Options

Range values

All expect a number.

  • init: Sets the handle's initial value. Default is 50.

  • min: Sets the min value of the slider. Default is 0.

  • max: Sets the max value of the slider. Default is 100.

  • step: Sets the stepping interval. Default is 1.

Style

The following expects a boolean:

  • vertical: If set to true the slider will be vertical instead of horizontal. min will be at the bottom, max will be at the top. Default is false.

Please note that widths and heights are flipped as well. If you set vertical: true you will have to change the sliderWidth if you want to to change the slider's height.

The following expect a string:

  • direction: If set to 'rtl' (right to left) min will be at the right, max will be at the left. If combined with vertical: true, min will be at the top, max will be at the bottom. Default is 'ltr' (left to right).

For the following, use any combination of value and unit that you would use in CSS:

  • sliderWidth: Sets the slider's width. Default ist '500px'.

  • sliderHeight: Sets the slider's height. Default is '50px'.

  • handleHeight: Sets the handle's height. Default is matching sliderHeight.

  • handleWidth: Sets the handle's width. Default is '50px'.

  • indicatorHeight: Sets the indicator's height. Default is matching sliderHeight.

  • indicatorWidth: Sets the indicator's width. Default is '5px'.

For the following, use any color that you would use in CSS:

  • backgroundColor: Sets the slider's background color. Default is 'black'.

  • handleColor: Sets the handle's color. Default is '#4CAF50', a greenish color.

  • indicatorColor: Sets the indicator's color. Default is 'rgba(255, 136, 0, 0.7)', some kind of orange.