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
25 lines
468 B
TypeScript
25 lines
468 B
TypeScript
import { styled } from '@mui/material/styles';
|
|
import Slider from '@mui/material/Slider';
|
|
import Box from '@mui/material/Box';
|
|
|
|
const CustomizedSlider = styled(Slider)`
|
|
color: #20b2aa;
|
|
|
|
&:hover {
|
|
color: #2e8b57;
|
|
}
|
|
|
|
& .MuiSlider-thumb {
|
|
border-radius: 1px;
|
|
}
|
|
`;
|
|
|
|
export default function StyledComponentsDeep() {
|
|
return (
|
|
<Box sx={{ width: 300 }}>
|
|
<Slider defaultValue={30} />
|
|
<CustomizedSlider defaultValue={30} />
|
|
</Box>
|
|
);
|
|
}
|