How to disabled mui select in react js?

Hi Friends 👋,

Welcome To aGuideHub!

To disabled mui select in React js, you can use disabled={disabled}. It will disabled mui select in React js.

Today, I am going to show you, how to disabled mui select in react js.


Install the following packages to use disabled mui select in react js.


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


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

MUI material disabled mui select example.

The below code is an example of disabled mui select using, set this to true to disable the Select.


import * as React from 'react';
import { Select, MenuItem } from '@mui/material';

const options = [
  { value: 'option1', label: 'Option 1' },
  { value: 'option2', label: 'Option 2' },
  { value: 'option3', label: 'Option 3' },

export default function MySelect() {
  const [value, setValue] = React.useState('option1');
  const disabled = true; // set this to true to disable the Select

  return (
    <Select value={value} onChange={(event) => setValue(} disabled={disabled}>
      { => (
        <MenuItem key={option.value} value={option.value}>

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

Check the output of the above code example.

React, Mui, disabled

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