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
21 lines
411 B
JavaScript
21 lines
411 B
JavaScript
import { styled } from '@mui/material/styles';
|
|
import Slider from '@mui/material/Slider';
|
|
import Box from '@mui/material/Box';
|
|
|
|
const SliderCustomized = styled(Slider)`
|
|
color: #20b2aa;
|
|
|
|
:hover {
|
|
color: #2e8b57;
|
|
}
|
|
`;
|
|
|
|
export default function StyledComponents() {
|
|
return (
|
|
<Box sx={{ width: 300 }}>
|
|
<Slider defaultValue={30} />
|
|
<SliderCustomized defaultValue={30} />
|
|
</Box>
|
|
);
|
|
}
|