- Plugins
- Advanced Range Slider
Plugins
Tailwind CSS Advanced Range Slider
Advanced Range Slider for creating custom sliders.
Installation
To get started, install Advanced Range Slider plugin via npm, else you can skip this step if you are already using Preline UI as a package.
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