i know if using Span i can colour an icon like this:
<span className={`fas fa-question-circle`} style={{ color:'red' }}/>
How do I change the icon colour for each PanelBarItem? This does not work:
<PanelBarItem
title={myTitle}
key={myKey}
iconClass={`fas fa-question-circle`} style={{ color:myColour }}
>
Item contents
</PanelBarItem>
would still like the answer on how to do it the bast way.
for now though i have stopped trying to use iconClass={`fas fa-question-circle`}
for now I have put a <span> into the title, seems to work OK
title={
<Fragment> <span className={`fas fa-question-circle`} style={{ color:'red' }}/>
{myTitle}
</Fragment>
}