-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[EnhancedButton] support composable anchor tag #2982
Comments
Seems this may already be possible (just not composable): #850 (comment). This is undocumented though. |
@mbrookes Actually we should remove that. if people want to tun it into a link, then they can just wrap the component around |
I thought that when I was updating the docs, and tried to change the example in order to replace |
Oh... there's that -_- what about |
So, we deprecated |
Well since it would be a change in behavior. It would better have a new name. but since we're working on |
This would allow deprecation of
linkButton
andhref
props. EnhancedButton already supports<input>
, but uses props to support anchor. This would also indirectly solve #1586.(Arguably
linkButton
is already redundant - ifhref
is set, thenlinkButton
must be true.)The text was updated successfully, but these errors were encountered: