Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
react-range-progress
Advanced tools
A visually customizable range input component for react, inspired by a post on css-tricks.
Coming soon.
npm install react-range-progress --save
The range control will stretch horizontally 100% width of the parent container.
import React from 'react'
import ReactDOM from 'react-dom'
import Range from 'react-range-progress'
var RangeDemo = React.createClass({
render: function() {
return (
<div style={{width: 300}}>
<Range
hideThumb={!!this.state.thumb}
height={this.state.height}
onChange={this.onValueChange.bind(this)}
value={this.state.rangeValue} />
</div>
)
}
})
ReactDOM.render(<FilesDemo />, document.getElementById('container'))
hideThumb
- Boolean
Set to true to hide the thumb.
height
- number
Track height in pixels.
thumbSize
- number
Thumb size in pixels.
min
- number
Minimum range value.
max
- number
Maximum range value.
onChange
- function
Callback called when the range value was changed.
value
- number
Initial range value.
The following properties are set with an object with properties r, g, b, a to set red, green, blue (all from 0 to 255) and alpha (0.0 to 1.0) channels. Example for a half opaque red color:
{
r: 255, g: 0, b: 0, a: .5
}
fillColor
- number
Fills the track part on the left of the thumb. Defaults to white.
trackColor
- number
Color of the 'empty' part of the track. Defaults to white with 50% opacity.
thumbColor
- number
Thumb color. Defaults to white.
npm test
MIT. Copyright (c) 2016 Jared Reich.
FAQs
Eases styling of sliders (range inputs).
The npm package react-range-progress receives a total of 111 weekly downloads. As such, react-range-progress popularity was classified as not popular.
We found that react-range-progress demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.