Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

r-range-slider

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

r-range-slider

all in one range slider, single range , double range , multi range

  • 3.0.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
41
increased by36.67%
Maintainers
1
Weekly downloads
 
Created
Source

r-range-slider

r-range-slider is a range slider created by reactjs.

  • Unlimit Styling.
  • Single point , double points and multi points support.
  • Change points in wonderfull ways.
  • Mobile Support(good for using in mobile browsers ,phonegap ,cordova or other hybrid frameworks).
  • Responsive.
  • right , left ,top ,botton direction support.

Usage

npm install r-range-slider

load

import Slider from "r-range-slider";

import React from 'react';

props list

PropDescriptionTypeDefault
startStart of slider rangenumber
endEnd of slider rangenumber
stepStep of change slidernumber1
minSet Minimum amount allowednumberoptional
maxSet Maximum amount allowed(optional)numberoptional
pointsSet Slider Pointsarray of objects
changableThis allows us to change the slider with mousebooleantrue
showValueMakes the point value appear on the point.if false , never show value, and if 'fixed' alwais show valueboolean or 'fixed'
labelLabeling slider based on number of steps or custom labelsobjectoptional
onchangecallback function that is to be executed in end of changing point(s) of slider. this function get all props of slider as parameterfunction
ondragcallback function that is to be executed while draging point(s) of slider. this function get all props of slider as parameter.function
directionSet direction of slider("left","right","top","bottom")string"right"
classNameSet className of sliderstringoptional
idSet id of sliderstringoptional
  • 1- value:value of point in range(number).
  • 2- fillColor: set color of range line in slider.(string or function that receives the point object as parameter).(default is 'blue')
  • 3- text: this text will be rendered in center of range line.(string or function that receives the point object as parameter).
  • 4- className:set className for point.useful in set style of point.(string)
  • 5- style:set inline css for point.(object or function that receives the point object as parameter)
Single range width Label Demo
use custome style and range text
Use slider as switch
Use slider as triple mode switch
Awesome Demos

Keywords

FAQs

Package last updated on 16 Mar 2020

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc