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

Panorama Version 10 log traffic

I am working with 2 Palo Alto version 10 config as a cluster that they are managed on Panorama 10. My problem is I can't send traffic logs to the panorama from the Palo alto devices. The only way to see the traffic logs is if I send it directly from the Palo alto device to the…

thumbsup
0
message-simple
0

How to use style array of int added by styled hoc?

Hello, we are using styled hoc to style a Link component, the HOC add a props.style = [11], we don't know what to do with that props to append the style for our react native web component, any idea how we can generate the classname from that array of style id?

thumbsup
0
message-simple
0

How can I stop styled-components from passing some props to the DOM?

I am using styled-system to add some responsiveness props like this to my styled components: display={{ xs: "none", sm: "block" }} But styled components passes the display prop to the DOM, so the rendered component has this attribute: …

thumbsup
0
message-simple
5
Deleted·14d# General

Using named classes inside styled components is considered a bad practice?

Hello everyone, I have been using this approach for a while but haven't thought muic about how styled-components would output this into the browser and if this could lead to any conflict if we use the same classes names classes for different components. I believe that all…

thumbsup
0
message-simple
0

Styled-components break react controlled forms using hooks

I built a functional hooks component and used styled-components instead of a styles.css file. However every time I did a key press in an input field, focus was lost. After much investigation, I discovered that by reverting back to the styles.css file and abandoning…

thumbsup
0
message-simple
2

Does anyone know of a way to make the css prop feature work without Babel?

I've been playing with ESBuild and it is SO MUCH FASTER and our projects all seem to be building fine -including the standard "styled" api of SC ...but since there is no Babel plugin, anytime we've used the CSS prop approach these just get left as CSS attributes in the HTML…

thumbsup
0
message-simple
0

[ROADMAP QUESTION] CSS output on compile

Hi there is any plan to allows SC to be compiled as **.css in build?

thumbsup
0
message-simple
0

Can you convert a input to textarea?

thumbsup
0
message-simple
1

Disable injection or specify target DOM element

Question here, hopefully simple. How does one disable implicit head styles injection or specifies target DOM element where critical styles should be injected? Reason why I need it: I'm working on serverless hot swappable ui runtime and I cannot afford side-effects like these…

thumbsup
1
message-simple
1

Issues with Typescript

i'm having issues with styled components and typescript. i have a code sandbox here with all the stuff installed: https://codesandbox.io/s/gallant-meadow-yo25j?file=/src/App.tsx on the react-bootstrap API it has a prop called body, as documented here:…

thumbsup
0
message-simple
0