Skip to content
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

[ThemeOptions V5]: Component prop not available in MuiLink's defaultProps when creating theme #27593

Open
AnthonyDugarte opened this issue Aug 3, 2021 · 2 comments
Labels
component: link This is the name of the generic UI component, not the React module! typescript

Comments

@AnthonyDugarte
Copy link

When configuring the default component prop for MuiLink:

image

as in the guide:

image

The following error is presenting:

image

Versions:

@material-ui/core: 5.0.0-beta.2

@AnthonyDugarte AnthonyDugarte added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Aug 3, 2021
@michal-perlakowski
Copy link
Contributor

michal-perlakowski commented Aug 4, 2021

This is just a TypeScript error, so as a temporary workaround you can add // @ts-ignore - this is how it's done in the demo.

@mnajdova
Copy link
Member

mnajdova commented Aug 5, 2021

Related guide on TypeScript - https://next.material-ui.com/guides/typescript/#usage-of-component-prop

@mnajdova mnajdova added component: link This is the name of the generic UI component, not the React module! typescript and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Aug 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: link This is the name of the generic UI component, not the React module! typescript
Projects
None yet
Development

No branches or pull requests

3 participants