Closed ghost closed 6 years ago
I've added an example showing how to do this at: https://github.com/jacob-ebey/styled-components-ts/blob/master/examples/WithComponent.ts
If you still have an issue or the output isn't what you expect, let me know. The trick is to pass Button.withComponent('a').extend to the styledComponentsTS function.
Thanks very much Jacob!
Is there a way to use this with Styled Component's withComponent method?
I've tried various takes but consistently get type mis-match errors.