A Modern And Customizable Range Slider In Vue.js 3 and TypeScript

Vue 3 slider is horizontal, vertical and circular sliders! Fully responsive, touch screen and keyboard control support!

how to create round slider in html, round slider jquery, circle carousel slider, image slider javascript, half circle slider, javascript range slider, vertical slider in html

How to make use of it:

Install and download:

# Yarn
$ yarn add vue3-slider

# NPM
$ npm i vue3-slider

1. Import and register a slider item.

import slider from "vue3-slider"
export default {
  components: {
    "vue3-slider": slider
  }
}

2. Add a basic slider control to the application.

<vue3-slider v-model="myNumber" />

3. All possible props to customize slider control.

width: {
  type: String,
  default: "100%",
  validator: validateLength,
},
height: {
  type: Number,
  default: 6,
},
color: {
  type: String,
  default: "#FB2727",
},
trackColor: {
  type: String,
  default: "#f1f6f828",
},
max: {
  type: Number,
  default: 100,
  required: true,
},
min: {
  type: Number,
  default: 0,
  required: true,
},
step: {
  type: Number,
  default: 1,
  required: true,
  validator(val: number) {
    if (val !== 0) {
      return true;
    } else {
      console.error("[Vue3Slider] Error: Step cannot be 0");
      return false;
    }
  },
},
tooltip: {
  type: Boolean,
  default: false,
},
tooltipText: {
  type: String,
  default: "%v",
  validator(val: string) {
    if (!val.includes("%v")) {
      console.error("[Vue3Slider] Error: tooltip text must contain %v");
      return false;
    }
    return true;
  },
},
tooltipColor: {
  type: String,
  default: "#FFFFFF",
},
tooltipTextColor: {
  type: String,
  default: "#000000",
},
formatTooltip: {
  validator(val: any) {
    if (typeof val !== "function") {
      console.error("[Vue3Slider] Error: formatTooltip must be a function");
      return false;
    } else if (typeof val(0) !== "string") {
      console.error("[Vue3Slider] Error: formatTooltip must return a string");
      return false;
    }
    return true;
  },
},
orientation: {
  type: String,
  default: "horizontal",
  validator(val: string) {
    return val === "horizontal" || val === "vertical" || val === "circular";
  },
},
modelValue: {
  type: Number,
  default: 0,
  required: true,
},
repeat: {
  type: Boolean,
  default: false,
},

Custom Horizontal/Vertical/Circular Slider Control Plugin/Github


See Demo And Download

Official Website(freddie-nelson): Click Here

This superior jQuery/javascript plugin is developed by freddie-nelson. For extra Advanced Usages, please go to the official website.

Related Posts

Iconpicker-Bootstrap-5

[Icon Picker] Iconpicker for Bootstrap 5 Icons Library

Bootstrap 5-based icon picker which supports any icon libraries like Bootstrap Icons, Font Awesome[fontawesome.com], etc. Must Read: 1000+ Pixel Perfect SVG Icons For Vue Components | Unicons How…

bootstrap-multiple-image-upload-with-preview

Bootstrap Multiple Image Upload with Preview and Delete | ImagesLoader

ImagesLoader is a standard bootstrap image upload plugin that provides an easy-to-use and nice-looking interface for uploading multiple images to a web server. Must Read: HTML 5…

Animating-Split-Flap-Displays-fallblatt

A Lightweight jQuery Plugin for Animating Split-Flap Displays | fallblatt

fallblatt is a lightweight jQuery plugin for animating split screens. This jQuery plugin allows you to include such offers in your web application. Everything from virtual departure…

bootstrap-5-dark-theme

Dark & Light Switch Mode Toggle for Bootstrap 5

Switching to dark mode is done by toggling HTML tags that include -dark or -light as a category. It is made by manipulating the DOM with JavaScript. The text color also changes depending…

jQuery-SyoTimer-Plugin

jQuery Plugin for Countdown Timer on HTML Page | SyoTimer

yoTimer jQuery plugin allows you to create digital style countdowns/periodic timers on the webpage, with callbacks support and timezone/translation customization. Features Periodic count with the specified period…

vue-js-periodic-table

Dynamic, Data-driven Periodic Table built with Vue.js

Periodicity is a dynamic, data-driven periodic table created with Vue.js that uses D3 animations and graphs to show the beauty of periodic trends. Built With vue.js (component…