JSX factory polymorphic "as" prop #1000
Closed
jacoblapworth
started this conversation in
General
Replies: 1 comment
-
@jacoblapworth We're not implementing |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Similar to libraries like Stitches, it can be useful to change the html tag of a component in it's implementation.
For example you might have a heading component where you want to separate the semantic heading level, from the visual appearance:
It seems like this actually works under the hood with the
styled
asx factory, but it's not exposed in the typesIs this a bug / yet to be implemented?
Beta Was this translation helpful? Give feedback.
All reactions