How to change label color of mui select in react js?

Hi Friends 👋,

Welcome To aGuideHub!

To change label color of mui select in React js, you can use color: aqua !important; to .MuiInputLabel-root. It will change label color of mui select in react js.

Today, I am going to show you, how to change label color of mui select in react js.


Install the following packages to use mui label color in react js.


npm install @mui/material @emotion/react @emotion/styled


yarn add @mui/material @emotion/react @emotion/styled

MUI material change label color select example.

The below code is an example of changing label color of mui select using.


import * as React from 'react';
import InputLabel from '@mui/material/InputLabel';
import MenuItem from '@mui/material/MenuItem';
import FormControl from '@mui/material/FormControl';
import Select from '@mui/material/Select';
import "./App.css"

export default function SelectAutoWidth() {
  const [age, setAge] = React.useState('');

  const handleChange = (event) => {

  return (
      <FormControl sx={{ m: 1, minWidth: 80 }}>
        <InputLabel id="demo-simple-select-autowidth-label">Age</InputLabel>
           <MenuItem value="">
          <MenuItem value={10}>Twenty</MenuItem>
          <MenuItem value={21}>Twenty one</MenuItem>
          <MenuItem value={22}>Twenty one and a half</MenuItem>
.MuiInputLabel-root {
  color: aqua !important;

In the above code example, I have used the @mui/material component and changed label color of mui select in react js.

Check the output of the above code example.

React, Mui, label, color

Here, we are provided code sandbox links for the above program change label color of mui select. Then you can use whenever you want and do the changes as per your requirements.

Try it Yourself

All the best 👍

Premium Content

You can get all the below premium content directly in your mail when you subscribe us


Interview Questions

Soon You will get CSS, JavaScript, React Js, and TypeScript So Subscribe to it.

Portfolio Template

View | Get Source Code

Cheat Sheets

Cheat Sheets Books are basically Important useful notes which we use in our day-to-day life.

Related Posts