
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
react-slide-rule
Advanced tools
A React component allowing users to select a value along a subjective range and step.
React-slide-rule is a React component shaped like a ruler/slide rule, allowing users to select a value along a subjective range and step.
More demos available here!
npm install react-slide-rule
import React, { useState } from 'react';
import SlideRule from 'react-slide-rule';
const STYLE = {
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
};
export default function () {
const [value, setValue] = useState(150);
return (
<div style={STYLE}>
<p>{value}</p>
<SlideRule value={value} onChange={setValue} />
</div>
);
}
Check out the example codes in the repository, or demos.
A list of all props available here.
Hint: Use suggestion/auto complete to find the props in your code editor.
This project is licensed under the MIT license.
FAQs
A React component allowing users to select a value along a subjective range and step.
The npm package react-slide-rule receives a total of 221 weekly downloads. As such, react-slide-rule popularity was classified as not popular.
We found that react-slide-rule 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
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.