0

I'm recently working on a project using react. I would like to know if there is a way to color the Material-UI component of the rating with custom colors.

  • Does this answer your question? [Material-UI : Rating Component, change color based on value](https://stackoverflow.com/questions/63451658/material-ui-rating-component-change-color-based-on-value) – hgb123 Sep 16 '21 at 08:42

2 Answers2

1

Actually, you can have whatever icon shape or colour that you like

Take a look at this example from Material UI site:

Edit Material demo

Ryan Le
  • 7,708
  • 1
  • 13
  • 23
0

You can use this example

material-ui.com/components/rating/customize

and create a costm component in your preferred color

smt like this

const StyledRating = withStyles({
  iconFilled: {
    color: 'red',
  },
  iconHover: {
    color: 'darkred',
  },
})(Rating);