You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to pass the Style parameter to the option element?
Maybe also a new feature for this component.
I know I can set my own class, but I'd rather use inlinestyles in a suitable place.
<Option
style={{ color: color, backgroundColor: color }}
/>
br Henry
The text was updated successfully, but these errors were encountered:
@simkea Apologies for the late reply. MUI React passes through inline styles and classNames but the values don't get reflected in the UI because 1) the browser's default <select> widget ignores <option> styles and 2) the MUI custom interface doesn't support it. Can you give an example of what you're trying to do?
I hope you can add the following.
Pass the style attribute for the option to the mui-select__menu > div element.
I don't want to use classes here, because the color values come from a database.
Is there a way to pass the Style parameter to the option element?
Maybe also a new feature for this component.
I know I can set my own class, but I'd rather use inlinestyles in a suitable place.
br Henry
The text was updated successfully, but these errors were encountered: