ThemeProvider does not pass theme prop to reactstrap tooltip
Hey everyone, I am trying to use a styled-component inside the reactstrap tooltip, but the theme prop is not present there. The app is encapsulated using the ThemeProvider component to pass the theme across the app to all styled-components. Anything that I am missing here ?
prettier auto-formatting for "css helper" functions not working
Using prettier with eslint as my auto-formatting/linter but formatting isn't working for css helper functions e.g won't get formatted. however, preprending styled.someRandomMethodfont-size:2px;margin:blah;` does format it …
Get CSS styles working with prerender.io
I'm trying to use SSR for my React app. I'm running prerender (https://github.com/prerender/prerender) on my own server. Everything works fine, apart from the styles. I've read the documentation about SSR (https://www.styled-components.com/docs/advanced#server-side-rendering)…
Could not find a declaration file for module 'styled-components/native'.
Hi i'm working on a new ts expo react native app and i had install styled-component 5.2.1, also "@types/styled-components-react-native": "^5.1.0" BUT i have this error : Could not find a declaration file for module 'styled-components/native'.…
styled-components with Storybook
I'm using storybook to build up my components which are made with styled-components and I want to import them into Storybook, and when I do import the component into my story, it returns me this error: I followed the guide to set up Storybook with Preact here,…
What does the forwardedProp API look like? How to use forwardedAs prop?
Here are the docs on forwardedAs prop: https://styled-components.com/docs/api#forwardedas-prop. As you can see, there isn't much that tells us how to use this forwardedAs prop. My goal is to forward several props down to the component that is being rendered from the as prop.…