#Boolean or String props ?
Which one is the best approach ?
<Button color="primary"> Button </Button>
Is this approach considered bad practice?
Instead of digging theme out per property like so:
could you do this instead?:
It makes more complex examples easier to follow, but using the css function in this way feels super gross.
Integrating two micro-services that both use styled-components
Hello all, I'm attempting to run a simple "proxy" EC2 instance wherein I have a simple structure grabbing 5 microservices from other EC2 instances. 2 of those microservices are using styled-components and therefore neither loads. I did alter each microservices' webpack to build…
React Native TextInput loses focus on call setState
Can anyone says what im doing wrong? :(
Debugging SSR rendering
Hello, I am trying to run styled-components with SSR streaming. Styles work fine once app is rehydrated. However, there is a flickering and when I check server rendered output, there are no styles. Even switching to renderToString and checking sheet for rendered styles it…
Is it possible to use more than one theme in a component?
Example of multiple themes:
dark, without button, no-border
how to override MUIDataTable design in typescript with styled component in react
Merging styles into a component?
How do I add more style rules to a styled component? Migrating from JSS and I'm probably missing something basic, looking for something similar to accepting and passing props.classes
How to override GlobalStyles in styled-components?
I have a monorepo maintained with yarn workspaces and the set up looks roughly like this:
I export two things from theme:
In "app-1" and "app-2", I'd like to keep the global styles as they are, but in "app-3", I'd like to override them. …
What is the best way to use cypress testing with styled components?
I am in the middle of the project and now realised we need cypress. What is the best way to overcome this task? or should change this qa aspect?