# react-multi-thumb-slider

> Multi thumb slider React component

Latest version **1.0.14** (published 2020-07-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-multi-thumb-slider
pnpm add react-multi-thumb-slider
yarn add react-multi-thumb-slider
bun add react-multi-thumb-slider
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.14 |
| Published | 2020-07-14 |
| First published | 2020-07-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 47.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Igor Zashchelkin |
| Maintainers | izashchelkin |
| Keywords | react, slider, multi thumb |

## Links

- npm: https://www.npmjs.com/package/react-multi-thumb-slider
- Repository: https://gitlab.com/igorzash/react-multi-thumb-slider/
- npm.io page: https://npm.io/package/react-multi-thumb-slider

## Dependencies (2)

- [react](https://npm.io/package/react.md) ^16.13.1
- [styled-components](https://npm.io/package/styled-components.md) ^5.1.1

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.14 (latest) — 2020-07-14
- 1.0.13 — 2020-07-14
- 1.0.12 — 2020-07-14
- 1.0.11 — 2020-07-14
- 1.0.10 — 2020-07-14
- 1.0.9 — 2020-07-14
- 1.0.8 — 2020-07-14
- 1.0.7 — 2020-07-14
- 1.0.6 — 2020-07-13
- 1.0.5 — 2020-07-13
- 1.0.4 — 2020-07-13
- 1.0.3 — 2020-07-13
- 1.0.2 — 2020-07-13
- 1.0.1 — 2020-07-13
- 1.0.0 — 2020-07-13

## README

# react-multi-thumb-slider

This package provides you general non-overlapping multi thumb range slider.

> Warning: beta quality software!
> use at your own risk

### Installing

```shell script
npm install --save react-multi-thumb-slider
```

or

```shell script
yarn add react-multi-thumb-slider
```


### Importing

#### General slider
```javascript
import { Slider } from 'react-multi-thumb-slider';
```

#### Material slider preset
```javascript
import { MaterialSlider } from 'react-multi-thumb-slider';
```

### Gallery

#### Material slider preset

![Material slider preset](./assets/materialSlider.png)

```jsx
<div style={{ width: 500 }}>
    <MaterialSlider min={0} max={10} values={values} onChange={setValues} accentColor="#cc5803" />

    <p>
        {values[0]}
    </p>

    <MaterialSlider min={0} max={10} values={values1} onChange={setValues1} accentColor="#005803" />

    <p>
        {values1.join(',')};
    </p>

    <MaterialSlider min={1} max={10} values={values2} onChange={setValues2} accentColor="#cc0003" />

    <p>
        {values2.join(',')}
    </p>
</div>
```

#### Custom slider

![Custom slider](./assets/customSlider.png)


```jsx
<Slider
    min={1}
    max={10}
    onChange={setValues}
    values={values}
    styleThumb={{background: '#333', height: '20px', width: '20px'}}
    styleTrack={{background: 'lightblue', borderRadius: '2px', height: '10px', marginTop: '5px'}}
    styleWrap={{height: '20px', width: '300px'}}
    rangeBackground="grey"
/>
```

### Pay attention

- values aren't sorted


### Todo
- implement thumb labels
- docs
- tests
- more presets


### Used resources

- https://css-tricks.com/multi-thumb-sliders-general-case.

---
_Source: https://npm.io/package/react-multi-thumb-slider · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
