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
Is your feature request related to a problem? Please describe.
A common design pattern is for links to look like buttons. Currently, there's no trivial way to use button styles to render a link.
Describe the solution, feature, or improvement you'd like
Style Components provides an as prop feature which allows you to render a component as something else while preserving the styles and still render semantically correct HTML.
Describe alternatives you've considered
Currently, the only way to achieve this is to apply the same styles to the Link component.
Additional context
Since this React library can be used in several React-based frameworks with their own internal linking solutions it would be great if it wasn't tied to using this lib's Link component but would be able to handle the Link counterpart in Gatsby, Nextjs and Remix.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
A common design pattern is for links to look like buttons. Currently, there's no trivial way to use button styles to render a link.
Describe the solution, feature, or improvement you'd like
Style Components provides an
as
prop feature which allows you to render a component as something else while preserving the styles and still render semantically correct HTML.Describe alternatives you've considered
Currently, the only way to achieve this is to apply the same styles to the
Link
component.Additional context
Since this React library can be used in several React-based frameworks with their own internal linking solutions it would be great if it wasn't tied to using this lib's
Link
component but would be able to handle theLink
counterpart in Gatsby, Nextjs and Remix.The text was updated successfully, but these errors were encountered: