Vue Range Slider Component (npm: `vue-range-component`) is a UI library providing a customizable range slider based on Vue.js 2.x. The current and only stable version is 1.0.3, last published over six years ago, indicating the project is no longer actively maintained. It offers features such as horizontal and vertical orientations, piecewise value display, configurable tooltips, and support for both single-value and range selection. It handles display of minimum and maximum values and is designed to be compatible with both PC and mobile touch interfaces. Given its reliance on Vue 2.x and lack of recent updates, it is not suitable for modern Vue 3 projects. It was built with Rollup and uses Stylus for styling, shipping with pre-compiled CSS.
npm install vue-range-componentVerified import paths — ran on the pinned version, not inferred.
Demonstrates the basic integration of the VueRangeSlider component into a Vue 2.x single-file component, including CSS import and two-way data binding with `v-model`.
For Vue 3 projects, consider actively maintained alternatives like 'vue-slider-component' or 'primevue/slider' which support the newer Vue ecosystem. If migrating to Vue 3 is not an option, ensure you are using Vue 2.x.
Use `v-if` instead of `v-show` or `display: none` to ensure the component is mounted when visible. Alternatively, use the `show` prop to control visibility, or call the `refresh` method on the component instance (`this.$refs.slider.refresh()`) after it becomes visible or its layout changes.
Migrate to a currently maintained range slider component. If remaining on Vue 2.x, research alternatives that still offer support. For new projects, strongly recommend upgrading to Vue 3.x and using a compatible component.
Ensure the component is rendered with `v-if` when visible, use the component's `show` prop, or manually call the `refresh` method on the component instance (`this.$refs.slider.refresh()`) once the component becomes visible or its dimensions stabilize.
Ensure `import VueRangeSlider from 'vue-range-component'` is present in your script and the component is listed in the `components` option of your Vue instance or parent component (e.g., `components: { VueRangeSlider }`).