
Security News
npm ‘is’ Package Hijacked in Expanding Supply Chain Attack
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
github.com/andreruffert/range-slider-element
A cross browser customizable and accessible <range-slider> web component.
Install via npm
npm install range-slider-element
Import as ES module
import 'range-slider-element';
Or via CDN
<script type="module" src="https://cdn.jsdelivr.net/npm/range-slider-element@2/+esm"></script>
<range-slider min="0" max="100" step="1" value="50"></range-slider>
Make sure to load the base styles exported via range-slider-element/style.css
.
Or via CDN
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/range-slider-element@2/dist/range-slider-element.css">
min
The minimum permitted value. The default is 0
.max
The maximum permitted value. The default is 100
.step
The stepping interval. The default is 1
.value
The value. The default is min + (max - min) / 2
.dir
Directionality. The default is ltr. Allowed options rtl
.orientation
The default is horizontal. Allowed options vertical
.CSS custom properties
Exposed CSS custom properties scoped within the range-slider
element.
--track-size
- The track size. The default is 0.2rem
. Can be overwritten for customization.--thumb-size
- The thumb size. The default is 1.2rem
. Can be overwritten for customization.DOM selectors
range-slider {}
range-slider [data-track] {}
range-slider [data-track-fill] {}
range-slider [data-thumb] {}
/* Advanced customization */
range-slider [data-runnable-track] {}
For examples of how to customize the default styling, check out the docs.
input
- Pointer move, value changed. Bubbles.change
- Pointer up, key up, value changed. Bubbles.For examples checkout the CodePen <range-slider> collection.
Distributed under the MIT license. See LICENSE for details.
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
Security News
A critical flaw in the popular npm form-data package could allow HTTP parameter pollution, affecting millions of projects until patched versions are adopted.
Security News
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.