We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Trusted by the world’s leading companies

Syncfusion Trusted Companies


The JavaScript Range Slider is an HTML5 input control that is used to select a value or range of values. Select a relative quantity value by moving a thumb along a bar. The control has major/minor ticks, thumb, and tooltip that can be fully customized. Also, the control can be aligned horizontally or vertically.

Numeric Range Slider

Select a range of numeric values intuitively by using two handles. A range slider usually fills a color between the handles to indicate selection.

Numeric range slider in JavaScript

Single value slider in JavaScript

Single value Slider

This simple slider control in JavaScript allows users to select a specific numeric value from a range. Fill selection option is available to indicate the selected range visually.

Touch-friendly and responsive

The Javascript Range Slider control recognizes touch gestures, allowing the user to swipe left or right to change the value of the slider. The responsive, touch-friendly design provides the best user experience on all phone, tablet, and desktop form factors.

Check range slider examples in different mobile devices

Touch-friendly and responsive JavaScript Range Slider

Formatting values in JavaScript Slider

Formatting values

Users can format slider values with a prefix (e.g. $10) and postfix (e.g. 10 km), and prettify the given values (e.g. 10000 to 10,000).

Custom slider

Users can customize the slider as needed and change it to a date range slider, time range slider, price range slider, rating slider, custom values, and more.

Vertical slider in JavaScript

Vertical slider

The JavaScript Range Slider control can be aligned both horizontally and vertically.

Floating and negative values

The JavaScript Range Slider control follows the HTML5 input type range standards, and supports numbers, and also floating and negative values regardless of the format.

Float and negative values in JavaScript Slider

HTML5 Form Slider

Seamlessly supports HTML5 forms and obtains values on form submission.


The tooltip displays slide value information when the mouse pointer moves the thumb over the bar. The same can be done on mobile devices by touch events.

Step interval in JavaScript Slider

Snap to increment

Allows users to select a value or range between precise intervals by configuring the step interval value.

UI customization

The HTML5 slider bar, thumbs, ticks, and tooltips can be completely customized using CSS and callback events.

Built-in and customizable themes

Several built-in, Sass-based themes are available: Fluent, Tailwind CSS, Bootstrap 5, Bootstrap, Material, and high contrast. Users can customize these themes by either overriding the existing Sass styles or creating custom themes using the Theme Studio application.

Globalization and Localization

The JavaScript Range Slider control is designed to work in multiple cultures, and can also be localized for a specific culture.

Other Supported Frameworks

The Slider component is also available in Blazor, React, Angular, and Vue frameworks. Check out the different Slider platforms from the links below,

Web Accessibility

  • Fully supports WAI-ARIA accessibility that helps sliders be accessible by on-screen readers and assistive devices.
  • Designed UI visual elements such as foreground color, background color, line spacing, text, and images based on the WCAG 2.0 standard.
  • Follows WAI-ARIA best practices for implementing keyboard interaction.

Developer Friendly APIs

Developers can customize all UI elements and control its behaviors. A rich set of developer-friendly APIs provides the best user experience.

JavaScript Range Slider Code Example

Easily get started with the JavaScript Range Slider using a few simple lines of HTML and TS code, as demonstrated below. Also explore our JavaScript Range Slider Example that shows you how to render and configure the Range Slider in JavaScript.

  <link href="https://cdn.syncfusion.com/ej2/bootstrap5.css" rel="stylesheet">
        <div class='wrap'>
            <!--element which is going to render the Slider -->
             <div id="slider"></div>
.wrap {
  height: 260px;
  margin: 0 auto;
  padding: 30px 10px;
  width: 260px;
import { Slider } from '@syncfusion/ej2-inputs';

// Initialization of Slider control
let slider: Slider = new Slider();

// Render initialized Slider


Our Customers Love Us

Having an excellent set of tools and a great support team, Syncfusion reduces customers’ development time.
Here are some of their experiences.

Rated by users across the globe

Transform your applications today by downloading our free evaluation version
Download Free Trial No credit card required.


Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion is proud to hold the following industry awards.

Up arrow icon
Live Chat Icon For mobile