menu

styled-components

Visual primitives for the component age. Use the best bits of ES6 and CSS to style your apps without stress!

Channels
Chat
view-forward
# All channels
view-forward
# General
view-forward
# Help
view-forward
# jest
view-forward
# Off Topic
view-forward
# Website
view-forward
Team
Posts
Chat
Members
Info
down-caret

#Boolean or String props ?

Which one is the best approach ? <Button color="primary"> Button </Button> or …

thumbsup
0
message-simple
3

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.

thumbsup
0
message-simple
3

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…

thumbsup
0
message-simple
0

React Native TextInput loses focus on call setState

https://snack.expo.io/BJSfYqlCS Can anyone says what im doing wrong? :(

thumbsup
0
message-simple
0

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…

thumbsup
0
message-simple
0

Is it possible to use more than one theme in a component?

Example of multiple themes: dark, without button, no-border

thumbsup
0
message-simple
0

MUIDataTable

how to override MUIDataTable design in typescript with styled component in react

thumbsup
0
message-simple
0

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

thumbsup
0
message-simple
5

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. …

thumbsup
0
message-simple
0

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?

thumbsup
0
message-simple
0