How to change placeholder of mui select in react js?

Hi Friends 👋,

Welcome To aGuideHub!

To change placeholder of mui select in React js, you can use label="Girls". It will change placeholder of mui select in react js.

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


Install the following packages to use mui placeholder in react js.


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


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

MUI material change placeholder of mui select example.

The below code is an example of changing the placeholder of mui select using.


import * as React from 'react';
import Box from '@mui/material/Box';
import InputLabel from '@mui/material/InputLabel';
import MenuItem from '@mui/material/MenuItem';
import FormControl from '@mui/material/FormControl';
import Select from '@mui/material/Select';

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

  const handleChange = (event) => {

  return (
    <Box sx={{ maxWidth: 100}}>
      <FormControl fullWidth>
        <InputLabel id="demo-simple-select-label">Girls</InputLabel>
          <MenuItem value={10}>Manavi</MenuItem>
          <MenuItem value={20}>Tanavi</MenuItem>
          <MenuItem value={30}>Janavi</MenuItem>

In the above code example, I have used the @mui/material component and changed the placeholder of mui select.

Check the output of the above code example.

React, Mui, placeholder

Here, we are provided code sandbox links for the above program change placeholder 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


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.

I'm working on some more Cheat Sheets book on Jquery, TypeScript, React js and for other languages. I will send it once it's completed.

Related Posts