
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
react-range-slider-bem
Advanced tools
A flexible slider for reactjs
Install via npm
import RangeSlider from 'react-range-slider-bem';
// ...
render() {
return (
<RangeSlider value={[20]} withBars />
);
}
Type: Number
Default: 0
Description: Min value for slider, default is 0.
// ...
render() {
return (
<RangeSlider min={0} />
);
}
Type: Number
Default: 100
Description: Max value for slider, default is 100.
// ...
render() {
return (
<RangeSlider max={999} />
);
}
Type:
value: PropTypes.oneOfType([
PropTypes.number,
PropTypes.oneOfType([
PropTypes.arrayOf(PropTypes.number),
PropTypes.arrayOf(PropTypes.string),
PropTypes.arrayOf(PropTypes.shape({
value: PropTypes.number,
color: PropTypes.string,
})),
]),
])
Default: []
Description: Define the value, can be string or array
// ...
render() {
return (
<div>
<RangeSlider value=[10,20] />
or
<RangeSlider value=[{value:10, color: '#FFF'}] />
or
<RangeSlider value=['#FFF', '#FFS'] />
</div>
);
}
Type: PropTypes.oneOf(['horizontal', 'vertical'])
Default: horizontal
Description: Orientation for slider, must be horizontal or vertical, default is horizontal.
// ...
render() {
return (
<RangeSlider orientation="vertical" />
);
}
Type: Boolean
Default: false
Description: Options is slider show the bars or not, default false.
Type: Boolean
Default: false
Description: Options is slider show the cursors or not, default false. You can also set up a custom cursor and implement like ./Cursor.js
Type: Boolean
Default: false
Description: Options disable slider, default false. If set diabled with true cursors in the slider will unable to drag.
Type:
range: PropTypes.oneOfType([
PropTypes.bool,
PropTypes.arrayOf(PropTypes.bool),
PropTypes.arrayOf(PropTypes.number),
])
Description: Range for slider, menas you can set header or tailer cursor or both, something like blow: -|-----------|-
// ...
render() {
return (
<div>
<RangeSlider range />
or
<RangeSlider range={[true, false]} />
or
<RangeSlider range={[10, 90]} />
</div>
);
}
Type: Boolean
Description: Disable slider header cursor.
// ...
render() {
return (
<RangeSlider range={[10]} disabledHeader />
);
}
Type: Boolean
Description: Disable slider tailer cursor.
// ...
render() {
return (
<RangeSlider range={[null, 90]} disabledTailer />
);
}
Type: String
Default: range-slider
Description: Slider classname
// ...
render() {
return (
<RangeSlider className="custom-slider" />
);
}
Type: String
Description: Slider modifier classname
// ...
render() {
return (
<RangeSlider className="custom-slider" modClassName="rating" />
);
}
It will transform to
custom-slider_rating
on root element
Type: Function
Default: function noop() {}
Description: Hook event for when mouse down for each cursor.
// ...
render() {
return (
<RangeSlider onMouseDown={somefunction} />
);
}
Type: Function
Default: function noop() {}
Description: Hook function before cursor dragging
Type: Function
Default: function noop() {}
Description: Hook function when cursor dragging
Type: Function
Default: function noop() {}
Description: Hook function after cursor dragging
Type: Function
Default: function noop() {}
Description: Click event for each bar
/**
* @param {Object} Event click event instance.
* @param {Number} Index Index of the clicked bar.
* @param {String} Color Clicked bar's background color.
*/
// ...
render() {
return (
<RangeSlider onBarClick={somefunction(evt[, index, color])} />
);
}
MIT © Anton Kuznetsov
FAQs
Fork of 'react-range-slider' with BEM naming
The npm package react-range-slider-bem receives a total of 3 weekly downloads. As such, react-range-slider-bem popularity was classified as not popular.
We found that react-range-slider-bem 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.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.