Installation & Usage
Install
Install via npm
Usage
Make sure to load the base styles exported via range-slider-element/style.css
.
Or via CDN
HTML
Attributes
min
The minimum permitted value. The default is0
.max
The maximum permitted value. The default is100
.step
The stepping interval. The default is1
.value
The value. The default is50
(min + (max - min) / 2
).dir
Directionality. The default is ltr. Allowed optionsrtl
.orientation
The default is horizontal. Allowed optionsvertical
.
Styling
CSS custom properties
Exposed CSS custom properties scoped within the range-slider
element.
-
--track-size
- The track size. The default is0.2rem
. Can be overwritten for customization. -
--thumb-size
- The thumb size, The default is1.2rem
. Can be overwritten for customization.
DOM selectors
Events
input
- Pointer move, value updated. Bubbles.
change
- Pointer up, key up, value updated. Bubbles.
input
- Pointer move, value updated. Bubbles.change
- Pointer up, key up, value updated. Bubbles.