Open
Description
Using v0.7.0
import React, { useState } from 'react';
import { Segment } from 'semantic-ui-react';
import { Slider } from 'react-semantic-ui-range';
const FilterSlider = () => {
const [values, setValues] = useState([0, 5000]);
const settings = {
start: [0, 5000],
min: 0,
max: 5000,
step: 1,
onChange: array => {
setValues(array);
}
};
return (
<Segment>
<Slider multiple value={values} color="teal" settings={settings} />
</Segment>
);
};
export default FilterSlider;
Metadata
Metadata
Assignees
Labels
No labels