How to customize the selected option style in MUI Autocomplete component?
P粉769413355
2023-08-14 10:47:21
<p>The question is like the title says, how can I change the style of the selected option in the MUI when using the <code>multi</code> option. I want to change the style of all highlighted options. Your help is greatly appreciated, thank you! </p>
You can use the
renderOption
attribute to render MUI Autocomplete, the code is as follows:This is a Codesandbox link.