Skip to content

a not ultra fancy slider web component, which shows the current value too

Notifications You must be signed in to change notification settings

openmusic/slider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

openmusic-slider

a not ultra fancy slider web component, which shows the current value too

It it essentially an input[type=range] and a span showing the input's current value. That's all it is.

install

npm install openmusic-slider

usage

require('openmusic-slider')('openmusic-slider');

var coolSlider = document.createElement('openmusic-slider');
document.body.appendChild(coolSlider);

properties

  • min
  • max
  • value
  • step

These properties can also be specified as attributes in HTML:

<openmusic-slider min="10" max="100" step="2" value="20"></openmusic-slider>

About

a not ultra fancy slider web component, which shows the current value too

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published