muicss/mui

passthrough style-Attribute for Option Component

Open

#288 ouverte le 6 sept. 2018

Voir sur GitHub
 (2 commentaires) (0 réactions) (0 assignés)JavaScript (4 524 stars) (441 forks)batch import
enhancementhelp wantedpriority: medium

Description

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

Guide contributeur