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
I am wondering if there are any plans to add a withComponent interface or an as prop similar to EmotionJS. This feature would be incredibly useful for scenarios where we need to specify the HTML tag used for rendering a component.
Summary
I am wondering if there are any plans to add a withComponent interface or an as prop similar to EmotionJS. This feature would be incredibly useful for scenarios where we need to specify the HTML tag used for rendering a component.
Examples
https://emotion.sh/docs/styled#change-the-rendered-tag-using-withcomponent
https://styled-components.com/docs/api#as-polymorphic-prop
Motivation
Search keywords: withComponent, as Prop, EmotionJS
The text was updated successfully, but these errors were encountered: