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
I think this is not directly possible - this library provides icons as React / Styled Components, and as far as I'm aware, it's not possible to use a React component in a ::before{content} CSS property.
I'll let you know if this is possible in the future, in the meantime I'll close this issue.
I think this is not directly possible - this library provides icons as React / Styled Components, and as far as I'm aware, it's not possible to use a React component in a ::before{content} CSS property.
I'll let you know if this is possible in the future, in the meantime I'll close this issue.
@aakhan89 it doesn't look like React supports this, no - ::before{content} can only be a string. You're likely better off wrapping the element in another element like a <div> and using CSS positioning to place the icon:
No description provided.
The text was updated successfully, but these errors were encountered: