xxxxxxxxxx
import React from 'react';
import { Slider } from '@material-ui/core';
const SliderComponent = () => {
const [value, setValue] = React.useState(50); // Initial slider value
const handleChange = (event, newValue) => {
setValue(newValue);
}
return (
<Slider
value={value}
onChange={handleChange}
aria-labelledby="continuous-slider"
/>
);
}
export default SliderComponent;