I'm currently working with the following style:
export const oneLine = styled.style`
white-space: nowrap;
`
My goal is to integrate it into a styled component like this:
const Bar = styled.div`
${oneLine}
...
`
Unfortunately, I am facing an issue where the style is not being applied. Any idea why this might be happening?
Some suggestions I came across mentioned using styled.css
, but it seems that option is no longer available.