95
rated 0 times
[
101]
[
6]
/ answers: 1 / hits: 5524
/ 3 Years ago, sun, july 4, 2021, 12:00:00
I am using styled components to enhance the looks of some of the basic material-ui React components. I want to be able to pass props into the MUI component, and then apply CSS styling via styled components.
As you can see, you are able to change the color of the item through styled components.
import MUICircularProgress from "@material-ui/core/CircularProgess"
export const LoadingIcon = styled(MUICircularProgess)`
color:black;
`
However, if I want to make the item larger, I need to pass size
as Props to MUICircularProgess
How would one do this and is this is even possible?
If not, what are some possible workarounds?
More From » reactjs