Made with create-react-library
npm install --save react-dual-range-slider-lib
import React, { Component } from 'react'
import { DualRangeSlider } from 'react-dual-range-slider-lib'
import 'react-dual-range-slider-lib/dist/index.css'
class Example extends Component {
const [inRangeStartVal] = useState(100);
const [inRangeEndVal] = useState(600);
const [selectedFromValue, outSelectedFromValue] = useState(0);
const [selectedToValue, outSelectedToValue] = useState(0);
const [inFilterStartVal] = useState(200);
const [inFilterRangeEndVal] = useState(500);
render() {
return
<DualRangeSlider
inRangeStartVal={inRangeStartVal}
inRangeEndVal={inRangeEndVal}
inFilterRangeStart={inFilterStartVal}
inFilterRangeEnd={inFilterRangeEndVal}
outSelectedFromValue={outSelectedFromValue}
outSelectedToValue={outSelectedToValue}
/>
}
}
import { DualRangeSlider } from 'react-dual-range-slider-lib'
import 'react-dual-range-slider-lib/dist/index.css'
function Example (){
const [inRangeStartVal] = useState(100);
const [inRangeEndVal] = useState(600);
const [selectedFromValue, outSelectedFromValue] = useState(0);
const [selectedToValue, outSelectedToValue] = useState(0);
const [inFilterStartVal] = useState(200);
const [inFilterRangeEndVal] = useState(500);
return (
<>
<DualRangeSlider
inRangeStartVal={inRangeStartVal}
inRangeEndVal={inRangeEndVal}
inFilterRangeStart={inFilterStartVal}
inFilterRangeEnd={inFilterRangeEndVal}
outSelectedFromValue={outSelectedFromValue}
outSelectedToValue={outSelectedToValue}
/>
</>
);
}