Is it possible to style an imported generic functional component?
I'm importing a generic functional component, and hoping to override the padding styles on it. I'm trying to do something like this: I'm having trouble finding an example of this done anywhere. I know I could just wrap SomeGenericComponent in a wrapper to style it how I want,…
Can we use `disableVendorPrefixes` and `disableCSSOMInjection` with TypeScript?
I'd like to use disableVendorPrefixes and disableCSSOMInjection which are introduced by v5 with TypeScript. But, when I use it, there is a typescript error. (TS2769: No overload matches this call.) It seems @types/styled-components doesn't support v5 but is there any way to use…
styles missing in cra production build but not in dev
Hi Thanks for any help in advance. Really appreciate it. I have created a website using chartjs and styled components really for the first time using either and it works fine in development. But when I build the production build using 'npm run build' most of the css is now…
Filtered props from HTML with "as" polymorphic prop
Because there is no good way to filter out attributes from the final HTML element, I've been using an HOC to handle it. It's important for us because AMP pages fail validation if it doesn't recognize HTML attributes. Used like so: Unfortunately if I use the polymorphic prop as…