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

Overview

The JavaScript Range Slider is a custom range-type HTML5 input control. It allows you to select a value or range of values between a specified min and max.


Numeric Range Slider

Provides the option to select a range of numeric values intuitively by using two handles. A range slider usually fills the color between the handles to indicate selections.


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 slider bar control recognizes touch gestures, allowing the user to swipe left or right to change the value of the slider. Responsive, touch-friendly design provides the best user experience on all phone, tablet, and desktop form factors.

Touch-friendly and Responsive illustration in JavaScript Slider Bar


Formatting Values

The user can format the 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

The user can customize slider type as needed, including date range slider, time range slider, price range slider, rating slider, custom values, and more.


Vertical Slider

The JavaScript Range Slider control provides both horizontal and vertical orientation modes.


Float and Negative Values

The JavaScript Range Slider control follows the HTML5 input type range standards, and it supports number, float, and negative values regardless of format.


HTML5 Form Slider

Seamlessly supports HTML5 forms, Angular template-driven forms, and reactive forms.


Snap to Increment

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


UI Customization

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


Globalization and Localization

The JavaScript Range Slider control is designed to support localization and right-to-left (RTL) direction.


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 the UI element visuals 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 the behaviors for their end users using its rich set of client-side APIs.


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.

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

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

// Render initialized Slider
slider.appendTo('#slider');


80+ JAVASCRIPT UI CONTROLS

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

4.4/5
(340+ Reviews)
Read more on Capterra
4.6/5
(390+ Reviews)
Read more on G2
4.4/5
(340+ Reviews)
Read more on GetApp

Transform your applications today by downloading our free evaluation version Download Free Trial

Awards

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

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile