79729227

Date: 2025-08-08 00:34:43
Score: 1
Natty:
Report link

This can also be overridden in the MUI Theme as follows:

const theme: ThemeOptions = {
  components: {
    MuiAutocomplete: {
      styleOverrides: {
        groupLabel: ({ theme }) => ({
          fontSize: theme.typography.body1.fontSize,
          color: theme.palette.primary.contrastText,
          backgroundColor: theme.palette.primary.light,
        }),
      }
    }
  }
}

https://mui.com/material-ui/customization/theme-components/
https://mui.com/material-ui/api/autocomplete/#autocomplete-classes-MuiAutocomplete-groupLabel

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Arajay