I am facing a challenge with my styled-component code. I want to use a unicode character \00d7
as the content for a pseudo selector, which represents a close or cross icon.
Unfortunately, this approach doesn't seem to work as expected in styled-components. Although I can always resort to using an SVG for the close icon, I'm intrigued to know if it's possible to achieve this directly with styled-components. It appears that blank pseudo selectors are allowed, such as ''
.
const Close = styled.span`
color: pink;
&:before {
content: '\00d7';
}
`