Reputation: 23
We used NativeSelect
components in our existing projects.
And now we need to change the style of NativeSelect
box dropdown Menu.
If we use Select, we can solve this easily using MenuProps
.
But in NativeSelect we can use <option>
only, not use MenuProps
, and MenuItem
.
How can I change the style of NativeSelect
Dropdown Menu to follow our design?
Upvotes: 1
Views: 866
Reputation: 1849
You can resolve it by using styled-components here. https://styled-components.com/
Upvotes: 2
Reputation: 75
Use styled-components.
npm install --save styled-components
https://styled-components.com/
also you can change in MenuProps
Upvotes: 1
Reputation: 23
Generally we can use styledcomponents. We can fix this styling using styled components, so if we cover components using styled components, then this isn't issue.
import styled from "styled-components";
Upvotes: 0