I found a workarround using Box
and setting the color on LinearProgress
to inherit:
import { Box, LinearProgress } from '@mui/material';
export default function ProgressBar() {
return (
<Box color="progress.501">
<LinearProgress
variant="determinate"
value={50}
color="inherit"
sx={{
height: 8,
width: 120,
}}
/>
</Box\>
);
}
However, I wonder if there's a way to make it work like it does in Typography
, i.e., without needing an extra Box
component.