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

multicolorslider

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

multicolorslider

React Multicolor Slider

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
241
increased by3.43%
Maintainers
1
Weekly downloads
 
Created
Source

multicolorslider

Multi-color slider implemented in ReactJS. Configurable number of segments and colors!

Install

npm i multicolorslider

Run locally

To run the example App locally:

npm install
npm run build
npm start

Open localhost:2222.

Usage

import ColorSlider from 'multicolorslider'

<ColorSlider
  min={Number}
  max={Number}
  name={String}
  thresholds={Array}
  colors={Array}
  onChange={Function}
/>

Props

PropTypeDefaultDescription
minnumberminimum value on the slider
maxnumbermaximum value on the slider
namestringname of the slider
thresholdsarray[]array of thresholds with array [0] == min and array[length -1] == max
colorsarray[]array of color codes, each representing a color segment on the slider in a sequence. The array length is equal to the thresholds array length - 1
onChangefunctioncall back function whenever slider changes a value/threshold

License

Please check the LICENSE file.

Keywords

FAQs

Package last updated on 07 Jun 2018

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