
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
multi-range-slider-react
Advanced tools
react component that return two value minValue and maxValue by event onInput/onChange.
a react component that can easy to use and interact with parent component with props and events.
Following is the list of props that control the component
props | type | default | description |
---|---|---|---|
min | Number | 0 | Slider Minimum Value that user can set |
max | Number | 100 | Slider Maximum Value that user can Set |
minValue | Number | 25 | Slider range selected minimum value that will show default selected |
maxValue | Number | 75 | Slider range selected maximum value that will show default selected |
step | Number | 5 | Slider change value that will change when bar clicked or keyboard arrow key pressed |
preventWheel | Boolean | false | true then it not accept mouse wheel to change its value. false then (shift + wheel) change minValue (ctrl+wheel) change maxValue, (ctrl+shift+wheel) change both values |
copy following code and run on CLI
npm install multi-range-slider-react
Example Code
import React, { useState } from "react";
import MultiRangeSlider from "multi-range-slider-react";
function App() {
const [minValue, set_minValue] = useState(25);
const [maxValue, set_maxValue] = useState(75);
const min = 0;
const max = 100;
const step = 5;
const preventWheel = false;
const handleInput = (e) => {
set_minValue(e.minValue);
set_maxValue(e.maxValue);
};
return (
<div className="App">
<MultiRangeSlider
min={min}
max={max}
minValue={minValue}
maxValue={maxValue}
step={step}
preventWheel={preventWheel}
onInput={(e) => {
handleInput(e);
}}
/>
</div>
);
}
export default App;
FAQs
Simple component to select range values from slider. React component that return two value minValue and maxValue by event onInput/onChange.
The npm package multi-range-slider-react receives a total of 4,191 weekly downloads. As such, multi-range-slider-react popularity was classified as popular.
We found that multi-range-slider-react 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
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.