- Plugins
- Range Slider
Plugins
Tailwind CSS Range Slider Plugin API
Headless, unstyled Range Slider plugin built with JavaScript and TypeScript, including installation, usage, options, methods, events, and selectors.
Installation
To get started, install Range Slider plugin via npm, or skip this step if you are already using Preline UI as a package.
Terminal
npm i nouislider @preline/range-slider
Events
noUiSlider Events
Note that all events available in the noUiSlider plugin are also available in our plugin, just use el.noUiSLider to handle events.
When slider updates event example.
const { element } = HSRangeSlider.getInstance('#range-slider', true);
element.el.noUiSlider.on('update', (values) => {
console.log(element.formattedValue);
});
Demo examples
Looking for prebuilt UI components based on the Tailwind CSS? Preline UI packs hundreds of component examples for all your website needs.
Check out Preline UI Components