My current Search box design is represented in the following image: https://i.sstatic.net/VuKIp.png
I am looking for ways to customize the background color, border, and icon of the search box when it is focused. Additionally, I would like to know how to modify its appearance when it is not in focus.
Here is my existing code snippet:
<TextField
className={classes.searchBarStyle}
placeholder="Search"
type="search"
margin="normal"
variant="outlined"
InputProps={{
startAdornment: (
<InputAdornment position="start">
<Search />
</InputAdornment>
),
classes: {input: classes.input}
}}
/>
Below is the CSS related to the search bar styling:
searchBarStyle: {
height: "40px",
width: "200px",
margin: "0 0 0 0",
float: "right",
},
input: {
color: "white",
textDecoration: "none",
'&::placeholder': {
color: 'white',
fontWeight: "400"
}
}