-
-
Notifications
You must be signed in to change notification settings - Fork 31.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
Link component="button" doesn't transpile anymore in a TypeScript project #15105
Comments
This usage seems supported from the doc standpoint though. |
FWIW, downgrading to |
This is a problem with generic props. I'm wondering about the general use case of rendering a link as a button. Should we remove
from the docs? Otherwise we should collect concrete examples for |
Wouldn't this mean a massive change to the Material UI API? Support for
|
But out components are not only style. Otherwise React would be a bit overkill. There's probably some use case but I would still like to see one. |
Running
We end up with the following
package.json
:Repro steps:
yarn start
App.tsx
This generates the following message
The text was updated successfully, but these errors were encountered: