![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
rc-rangeslider
Advanced tools
CSS agnostic slider component for React.
This is a new branch from See demo: https://mpowaga.github.io/react-slider/
This is an alpha release. Use with caution and hope.
npm install rc-rangeslider
Similar to <input type="range" defaultValue={50} />
React.render(<ReactSlider defaultValue={50} />, document.body);
React.render(<ReactSlider defaultValue={[0, 100]} withBars barColour=['red', 'blue', 'green'] />, document.body);
React.render(<ReactSlider defaultValue={[0, 33, 67, 100]} withBars />, document.body);
React.render(
<ReactSlider withBars>
<div className="my-handle">1</div>
<div className="my-handle">2</div>
<div className="my-handle">3</div>
</ReactSlider>,
document.body
);
Now you can style it as you want. Checkout the index.html
example to see how.
The minimum value of the slider.
The maximum value of the slider.
Value to be added or subtracted on each step the slider makes.
Must be greater than zero.
max - min
should be evenly divisible by the step value.
The minimal distance between any pair of handles. Zero means they can sit on top of each other.
Determines the initial positions of the handles and the number of handles if the component has no children.
If a number is passed a slider with one handle will be rendered. If an array is passed each value will determine the position of one handle. The values in the array must be sorted. If the component has children, the length of the array must match the number of children.
Like defaultValue
but for controlled components.
Determines whether the slider moves horizontally (from left to right) or vertically (from top to bottom).
The css class set on the slider node.
The css class set on each handle node.
In addition each handle will receive a numbered css class of the form ${handleClassName}-${i}
,
e.g. handle-0
, handle-1
, ...
The css class set on the handle that is currently being moved.
If true
bars between the handles will be rendered.
The css class set on the bars between the handles.
In addition bar fragment will receive a numbered css class of the form ${barClassName}-${i}
,
e.g. bar-0
, bar-1
, ...
If true
the active handle will push other handles within the constraints of min
, max
, step
and minDistance
.
If true
the handles can't be moved.
Disables handle move when clicking the slider bar.
Inverts the slider.
Callback called before starting to move a handle.
Callback called on every value change.
Callback called only after moving a handle has ended or when a new value is set by clicking on the slider.
Callback called when the the slider is clicked (handle or bars). Receives the value at the clicked position as argument.
Returns the current value of the slider, which is a number in the case of a single slider, or an array of numbers in case of a multi slider.
See the License file.
FAQs
Range Slider component for React
The npm package rc-rangeslider receives a total of 80 weekly downloads. As such, rc-rangeslider popularity was classified as not popular.
We found that rc-rangeslider 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
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.