senad_h
senad_h

Reputation: 23

React Material UI- NativeSelect Dropdown menu style customize

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

Answers (3)

Jason Jin
Jason Jin

Reputation: 1849

You can resolve it by using styled-components here. https://styled-components.com/

Upvotes: 2

James Ming
James Ming

Reputation: 75

Use styled-components.

npm install --save styled-components

https://styled-components.com/

also you can change in MenuProps

Upvotes: 1

senad_h
senad_h

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

Related Questions