-
-
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
[docs][Joy] component
, slots
, slotProps
must be visible in Prop table in API docs
#36666
Conversation
hbjORbj
commented
Mar 28, 2023
•
edited
Loading
edited
- I have followed (at least) the PR section of the contributing guide.
Netlify deploy previewhttps://deploy-preview-36666--material-ui.netlify.app/ @mui/joy: parsed: +1.29% , gzip: +1.06% Bundle size report |
158c924
to
bf81ce3
Compare
13fb1e4
to
a7216f4
Compare
Both #36599 and #36540 are merged. This is ready for review. @siriwatknp |
component, | ||
slots = {}, | ||
slotProps = {}, |
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.
@hbjORbj What's the reason to explicitly declare these props and compose them again in the externalForwardedProps
?
My intention is that the useSlot
will take care of them internally so we don't have to do this in all components.
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.
If we don't do this, then they don't show up in Proptypes (and hence not in JSON files), and hence they don't appear in Prop table in API docs
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.
👍 Thanks for the work!
One last thing, can you check that slots
test is added to all of the components? e.g. AutocompleteOption is missing the test.
@siriwatknp I've already handled that in this PR and merged it! |