Some checks failed
No response / noResponse (push) Has been cancelled
CI / Continuous releases (push) Has been cancelled
CI / test-dev (macos-latest) (push) Has been cancelled
CI / test-dev (ubuntu-latest) (push) Has been cancelled
CI / test-dev (windows-latest) (push) Has been cancelled
Maintenance / main (push) Has been cancelled
Scorecards supply-chain security / Scorecards analysis (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
26 lines
781 B
JavaScript
26 lines
781 B
JavaScript
import * as React from 'react';
|
|
import Box from '@mui/material/Box';
|
|
import Stack from '@mui/material/Stack';
|
|
import Slider from '@mui/material/Slider';
|
|
import VolumeDown from '@mui/icons-material/VolumeDown';
|
|
import VolumeUp from '@mui/icons-material/VolumeUp';
|
|
|
|
export default function ContinuousSlider() {
|
|
const [value, setValue] = React.useState(30);
|
|
|
|
const handleChange = (event, newValue) => {
|
|
setValue(newValue);
|
|
};
|
|
|
|
return (
|
|
<Box sx={{ width: 200 }}>
|
|
<Stack spacing={2} direction="row" sx={{ alignItems: 'center', mb: 1 }}>
|
|
<VolumeDown />
|
|
<Slider aria-label="Volume" value={value} onChange={handleChange} />
|
|
<VolumeUp />
|
|
</Stack>
|
|
<Slider disabled defaultValue={30} aria-label="Disabled slider" />
|
|
</Box>
|
|
);
|
|
}
|