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

[material-ui][types] Make OverridableComponent component prop optional #42097

Closed

Conversation

sydneyjodon-wk
Copy link
Contributor

Hello!

I'm not sure if there's a reason that the component prop in OverridableComponent is set to required, but it's coming through as required for us for a lot of components. I'm wondering if it would be okay to make it optional here instead?

Thank you!

@mui-bot
Copy link

mui-bot commented May 2, 2024

Netlify deploy preview

https://deploy-preview-42097--material-ui.netlify.app/

Bundle size report

No bundle size changes (Toolpad)
No bundle size changes

Generated by 🚫 dangerJS against 4d823aa

@sydneyjodon-wk
Copy link
Contributor Author

Based on the generation changes, it seems like there might have been a reason the prop is required?

@sydneyjodon-wk sydneyjodon-wk marked this pull request as ready for review May 2, 2024 20:38
@zannager zannager added the package: types Specific to @mui/types label May 3, 2024
@zannager zannager requested a review from mnajdova May 3, 2024 16:12
Copy link
Member

@ZeeshanTamboli ZeeshanTamboli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sydneyjodon-wk Could you first create a new issue where the component prop is coming through as required?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: types Specific to @mui/types
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants