-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
@fluentui/react-button: Address polymorphic typings #14414
Comments
I have this working, but if |
It is currently impossible to do this if Additionally, here is an issue in the typescript repo that indicates that this is likely a limitation of the language rather than something that can be fixed. Recommendation, it is possible to make a Here is a prototype that works, although it it is inelegant.
|
Do we still need this? |
Folding into #16746. |
We need to straighten out typings of Button and other components which use
as
. There is a way!Expected:
Resulted:
Typings are loose right now, extending
React.AllHTMLAttributes
.The text was updated successfully, but these errors were encountered: