@pencil.js/slider
v1.18.0
Published
Slider user input for Pencil.js package.
Downloads
71
Readme
Slider
Slider user input.

Installation
npm install @pencil.js/sliderExamples
import Slider from "@pencil.js/slider";
const position = [100, 200];
const options = {
min: 0,
max: 100,
value: 42
};
const slider = new Slider(position, options);SliderOptions
Inherit from InputOptions.
| Name | Type | Default | Comment |
| ---- | ---- | ------- | ------- |
|min |Number |0 |Minimum value when the slider is at lowest |
|max |Number |10 |Maximum value when the slider is at highest |
|value |Number |0 |Initial value |
|width |Number |200 |Size of the slider |
