menu
styled-components

# General

General chat

Posts
Members
Search
donifer·11h

Why is "as" breaking my styles?

I'm not sure what I'm doing wrong. But when I do something like this: The H3 will work fine but not the H4. I want to understand whats going on. …

thumbsup
0
message-simple
3

styled-components vs. emotion

I've been a user of styled-components for probably close to 2 years now and it's transformed the way I think about CSS in react applications. I've been very happy with styled-components so far but I always had in the back of my mind that I wanted to try out emotion and see what…

thumbsup
17
message-simple
36

Error when using npm link to test my module which uses styled-components. It…

I have created a npm module (created with nwb) where I use styled-components. In my consuming app, I'm also using styled-components. The problem is. Everything works fine when installing my module via npm install. However, when using npm link the following error message occurs…

thumbsup
0
message-simple
3

Convert Css into Styled-Components ?

Hello, I am still confusing how to convert css into styled-components. something like this: .container:hover .front, …

thumbsup
0
message-simple
10

Is it possible to pass props as an argument to the Styled Component and not…

I'm new to Styled Components so please forgive my poor knowledge. 1. I create a styled component and I want to use the theme, so I have in each property that declare the theme, couldn't I include it above to use it in each of the properties without having to redefine it? 2. If I…

thumbsup
0
message-simple
20
Ethan ·4d

Hello I am having a problem. I have 2 buttons and they are automatically…

thumbsup
0
message-simple
6

Does Styled Components Use Memoization?

For example, if I render a list of 100 items, does styled components re-parse the CSS for each item even if it is only a text label that changes for each item, or does it memorize the generated styles?

thumbsup
2
message-simple
10

Does wrapping a functional react component with a styled component that has…

thumbsup
0
message-simple
4

Extending a generic styled component

Hi all, I know there is a way to extend same components like: and there's a way to even use that as a different tag like: but I need a way to create a generic styled component that's not attached to any element and then use it for multiple elements. Something like: …

thumbsup
0
message-simple
2