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
The React Octicon components support the className prop, which makes it easy to apply custom styles to them. However, sometimes class-based styling is insufficient, such as when you need a fully dynamic style. For this, the style attribute is very important.
An example of its use might be when defining a dynamic icon color:
<SparkleFillIconstyle={{color: ...}}/>
The text was updated successfully, but these errors were encountered:
I think that does work for this specific problem. I still think that for consistency with other React components, it would be useful to support className styling we should also support inline styling via style. It's handy to have.
hey @iansan5653 thanks for opening the issue. We're not able to prioritize this at this time, but I will add it to our backlog for consideration when we revisit.
The React Octicon components support the
className
prop, which makes it easy to apply custom styles to them. However, sometimes class-based styling is insufficient, such as when you need a fully dynamic style. For this, thestyle
attribute is very important.An example of its use might be when defining a dynamic icon color:
The text was updated successfully, but these errors were encountered: