You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not strictly an issue of this library but a question about integrating with styled-components.
I have the following piece of code and styled-components is unable to deduce h1 attributes of StyledHeading. With only as={} suggested when creating a StyledHeading tag and any other attributes being any. Upon checking the typing from my IDE, I see that StyledHeading has type StyledComponent<PolymorphicForwardRefExoticComponent<P, any>, ...>.
importstyledfrom'styled-components'exportconstHeading: PolymorphicForwardRefExoticComponent<HeadingOwnProps,typeofHeadingDefaultElement>(...)=>{...}constStyledHeading=styled(Heading).attrs({forwardedAs: 'h1'// or as: 'h1'})``
Activity