![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
material-ui-slider
Advanced tools
//with yarn
yarn add material-ui-slider
//with npm
npm install material-ui-slider --save
Here's a quick example to get you started:
import React from 'react';
import ReactDOM from 'react-dom';
import { Slider } from 'material-ui-slider';
function App() {
return (
<Slider defaultValue={10}></Slider>
);
}
ReactDOM.render(<App />, document.querySelector('#app'));
name | type | default | description |
---|---|---|---|
min | number | 0 | min value in process bar. |
max | number | 100 | max value in process bar. |
defaultValue | number/array[number,number] | 0/[0,100] | default value, value must be between min and max. |
value | number/array[number,number] | / | value in process bar. |
range | bool | false | range choose, "defaultValue" must be an array |
scaleLength | number | 0 | scale choose, value "0" means "no scale", "defaultValue" must be a multiple of "scaleLength". |
direction | horizontal/vertical | horizontal | |
color | string | custom color for process bar, support HEX, RGB(RGBA), HSL | |
disabled | bool | false | |
onChange | func | Callback fired when the value is changed. Signature: function(value: number/array[number,number]) => void | |
onChangeComplete | func | Callback fired when the value is changed completely. Signature: function(value: number/array[number,number]) => void |
v3.0.2
v3.0.0
v0.1.11
v0.1.0
FAQs
slider fro Material-UI 1.0.0
The npm package material-ui-slider receives a total of 427 weekly downloads. As such, material-ui-slider popularity was classified as not popular.
We found that material-ui-slider 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
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
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.