
Security News
Rspack Introduces Rslint, a TypeScript-First Linter Written in Go
Rspack launches Rslint, a fast TypeScript-first linter built on typescript-go, joining in on the trend of toolchains creating their own linters.
@meadow/react-slider
Advanced tools
Clean and simple Slider component. For when just won't do.
Clean and simple Slider component. For when <input type="range" />
just won't do (IE9).
This component is designed for use with Browserify (but should work with anything CommonJS compatible). You can easily install it with npm:
npm install meadow/meadow-slider
Meadow Slider is a drop-in replacement for <input type="range" />
with a couple extras here and there. Basic usage looks something like this:
var Slider = require('meadow-slider');
var App = React.createClass({
render: function () {
return (
<div>
<Slider min={5} max={150} />
</div>
)
}
})
In order for this component to work, you must also include some styles. The easiest way to do so is by including the compiled CSS directly from this module:
import 'node_modules/meadow-slider/styles/Slider.css';
Property | Type | Description |
---|---|---|
min | Number | The minimum value of the slider. |
max | Number | The maximum value of the slider. |
step | Number | If set, this splits the slider into a set of steps that are step apart. |
value | Number | The value of the slider. If set, the slider will be a controlled component. You will need to set the onChange handler and update value manually. |
defaultValue | Number | The intial value of the slider. If set, the slider will be an uncontrolled component. |
onChange | Function | Callback to be fired when the value of the slider changes. Takes a single argument, newValue . |
className | String | The CSS classes to be applied to the base slider element. |
FAQs
Clean and simple Slider component. For when just won't do.
We found that @meadow/react-slider demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers 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
Rspack launches Rslint, a fast TypeScript-first linter built on typescript-go, joining in on the trend of toolchains creating their own linters.
Security News
Hacker Demonstrates How Easy It Is To Steal Data From Popular Password Managers
Security News
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.