1.0.9 • Published 1 year ago

@saidaitdriss/multirangeslider v1.0.9

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

multiRangeSlider

blue red

Installation

npm i @saidaitdriss/multirangeslider

usage

import

import MultiRangeSlider from "@saidaitdriss/multirangeslider";

set up

<MultiRangeSlider
        min={0}
        max={100}
        onChange={(min, max) => {
            console.log("min : ",min)
            console.log("max : ",max)
        }}
        leftValue={29}
        rightValue={100}
        currency={"€"}
      />

min : the minimum value of the range max : the maximum value of the range onChange : method to execute when the value of min or max changed leftValue : the left value of the range rightValue : the right value of the range currency : the symbol of the price

Other options

Namedescriptiondefault
containerStylethe style of the container{ display: "flex", alignItems: "center", justifyContent: "center", paddingBottom: "14px", paddingTop: "14px", width: "300px", }
rangeStylethe style of the range{ backgroundColor: "red" }
valuesStylethe style of left and right values{ color: "red", fontSize: "12px" }