-
-
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
[material-ui][Snackbar] Add Slots and SlotProps #45103
base: master
Are you sure you want to change the base?
Conversation
Netlify deploy previewhttps://deploy-preview-45103--material-ui.netlify.app/ @material-ui/core: parsed: +0.11% , gzip: +0.08% Bundle size reportDetails of bundle changes (Toolpad) |
@DiegoAndai @siriwatknp ready for review! |
/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One small point
This is why the docs:typescript:formatted
is failing, but I'm confused as to why... As every other example of ---.tsx.preview dose not include a break line, but for some reason docs:typescript:formatted
throws an error here, I'll run the command locally and it passes fine 🙃
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Thank you so much for your contribution.
I updated some part of the code to use useSlot
instead for consistency and updated the tests. The codemod looks good to me.
@siriwatknp Awesome, thanks for the review and update! I suppose it's over to @DiegoAndai then 🤟 |
part of #41281
This PR adds slot and slotProps, whilst deprecating components.
Slot:
SlotProps: