You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

react-js-multi-range-sliders

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-js-multi-range-sliders

Multi range slider with react js

0.1.6
latest
Source
npmnpm
Version published
Weekly downloads
5
-73.68%
Maintainers
1
Weekly downloads
 
Created
Source

react-js-multi-range-sliders

Latest version released on npmjs Supported platforms Supported platforms License

React Js MultiRangeSlider component used to select a multi value from a range of values.

Installation

To install this module cd to your project directory and enter the following command:

npm i react-js-multi-range-sliders --save

or

yarn add react-js-multi-range-sliders

Usage

The following code presents the basic usage scenario of this library:

import MultiRangeSlider from "react-js-multi-range-sliders";

const App = () => {
  return (
    <MultiRangeSlider
      min={0}
      max={100}
      onChange={({ min, max }) => console.log(`min = ${min}, max = ${max}`)}
    />
  );
};

export default App;

Check out the example project for more examples.

Properties

PropertyDescriptionTypeRequiredPlatform
maxInitial maximum value of the slider.
Default value is 1.
numberyes
minInitial minimum value of the slider.
Default value is 0.
numberyes
onChangeCallback continuously called while the user is dragging the slider.functionyes
classNameThis property used to override the container class Default class is containerstringNo
titleThis property used to add the slider titlestringNo

Browser support

  • Chrome (latest, mac, windows, iOS, Android)
  • Firefox (latest, mac, windows)
  • Safari (latest, mac, iOS)
  • Edge (latest, windows)

Contributing

This is how you can spin up the dev environment:

git clone https://github.com/ankushchavaninfo/react-js-multi-range-slider.git
cd react-js-multi-range-slider

Made with ❤️ 🙏

react-js-multi-range-slider is an open source project and will always remain free to use. If you think it's cool, please star it. if you need any help with these or just want to say hi!.

Author

Ankush Chavan 2022, https://ankushchavan.com

License

ISC

Keywords

react

FAQs

Package last updated on 08 Feb 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts