How can I change the color of the circle of this MUI circular progress, I got this code from the MUI page itself, https://mui.com/components/progress/ (Circular with label), there's a CodeSandBox that allows changing properties.
(I found a similar question dedicated to android, not desktop)
I tried several options with no success, this is the code that I adapted to my needs:
function CircularProgressWithLabel(props) {
return (
<Box sx={{ position: 'relative', display: 'flex' }}>
<CircularProgress variant="determinate" size="10rem" {...props} />
<Box
sx={{
top: 0,
left: 0,
bottom: 0,
right: 0,
position: 'absolute',
display: 'flex',
alignItems: 'center',
justifyContent: 'center'
}}
>
<Typography variant="caption" color="hsl(0, 0%, 100%)" component="div" sx={{ fontSize: '2rem' }}>
{`${Math.round(props.value)}%`}
</Typography>
</Box>
</Box>
);
}
function CircularStatic(props) {
return <CircularProgressWithLabel value={props.progress} />;
}
I want to be able to change this color. I guess the color comes from the default theme, but there must be a property to set such color
Thanks in advance
Rafael
