
Security News
NVD Concedes Inability to Keep Pace with Surging CVE Disclosures in 2025
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
react-step-range-slider
Advanced tools
Use this component like a range input with dynamic steps. Fully responsive and supports touch.
$ npm install react-step-range-slider --save
Usage:
import StepRangeSlider from 'react-step-range-slider'
const range = [
{ value: 0, step: 1 }, // acts as min value
{ value: 20, step: 5 },
{ value: 50, step: 10 },
{ value: 100, step: 50 },
{ value: 500 } // acts as max value
]
<StepRangeSlider
value={5}
range={range}
onChange={value => console.log(value)}
/>
range
: array
Configures min and max values as well as the step for each value breakpoint. Required.
value
: number
Determines the position of the drag handle. Should be divisible by the step at the appropriate value breakpoint.
defaultValue
: number
Determines initial position of the drag handle.
onChange
: function
Callback called on value change.
onChangeComplete
: function
Callback called on drag end or on click.
disabled
: bool
Prevent value change.
className
: string
Provide your own class for the outer element.
children
: any
Display whatever you want in the drag tooltip. Defaults to a tooltip.
stepDown()
Decrements the step of the slider by the specified number.
stepUp()
Increments the step of the slider by the specified number.
FAQs
A range slider input for React
The npm package react-step-range-slider receives a total of 490 weekly downloads. As such, react-step-range-slider popularity was classified as not popular.
We found that react-step-range-slider 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
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
Security Fundamentals
Attackers use obfuscation to hide malware in open source packages. Learn how to spot these techniques across npm, PyPI, Maven, and more.
Security News
Join Socket for exclusive networking events, rooftop gatherings, and one-on-one meetings during BSidesSF and RSA 2025 in San Francisco.