Replies: 1 comment 2 replies
-
In Web Components if you extend an existing element, you use |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
Figure out how to handle casting component element type.
Today we are just exposing and passing along the "native" styled-components prop
as
to be used for casting the underlying html element type.Exposed on props in:
It's also indirectly exposed to most of our other components due to use using spreading provided
props
inside our components.Problem
This approach does not work if you wrap the component with
styled()
HOC, because the wrapped component looses its styling.Possible solutions
as
prop on exposed components and encourage use of forwardedAsas
internallyis
Notes
@vnys explored a lot of possibilities in #707
Beta Was this translation helpful? Give feedback.
All reactions