简体   繁体   中英

How to change the color of placeholder in a Material ui Autocomplete

There are two different projects in which an internal library is being used in my team which provides a header in which there is a search box. In one of the projects, the placeholder text "Search" appears normally

在此处输入图像描述

But in the other project when used with the same third party library, the text appears differently.

在此处输入图像描述

The third party library uses MaterialUI "Autocomplete" to implement the search Bar.

I tried to look for color and opacity properties and tried a few different things with them but none of them had an effect. The properties all look the same, what other property should I try to check ?

You can customize the color inside the . Something like this in line 36

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM