import * as React from 'react'; import Box from '@mui/material/Box'; import Slider from '@mui/material/Slider'; import Typography from '@mui/material/Typography'; const MAX = 100; const MIN = 0; const marks = [ { value: MIN, label: '', }, { value: MAX, label: '', }, ]; export default function CustomMarks() { const [val, setVal] = React.useState(MIN); const handleChange = (_: Event, newValue: number) => { setVal(newValue); }; return ( setVal(MIN)} sx={{ cursor: 'pointer' }} > {MIN} min setVal(MAX)} sx={{ cursor: 'pointer' }} > {MAX} max ); }