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

[docs][joy] List slots in API documentation #36271

Merged
merged 7 commits into from
Feb 22, 2023

Conversation

hbjORbj
Copy link
Member

@hbjORbj hbjORbj commented Feb 20, 2023

@hbjORbj hbjORbj marked this pull request as draft February 20, 2023 12:26
@hbjORbj hbjORbj added docs Improvements or additions to the documentation package: joy-ui Specific to @mui/joy labels Feb 20, 2023
@hbjORbj hbjORbj self-assigned this Feb 20, 2023
@hbjORbj hbjORbj changed the title [docs] List slots in MUI Joy components documentation [docs][joy] List slots in API documentation Feb 20, 2023
@mui-bot
Copy link

mui-bot commented Feb 20, 2023

Netlify deploy preview

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

Bundle size report

No bundle size changes

Generated by 🚫 dangerJS against da6cd85

@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label Feb 21, 2023
@hbjORbj hbjORbj added this to the Joy UI stable release milestone Feb 21, 2023
@hbjORbj hbjORbj marked this pull request as ready for review February 21, 2023 16:01
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged label Feb 21, 2023
Comment on lines +26 to +27
export type CreateSlotsAndSlotProps<Slots, K extends Record<keyof Slots, any>> = {
slots?: Partial<Slots>;
Copy link
Member

Choose a reason for hiding this comment

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

Is my understanding is correct that this change is necessary for the API generation?

Copy link
Member Author

Choose a reason for hiding this comment

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

  • This change was needed so we could read the properties inside slots and its JSDoc.
  • I also noticed that we miss 'slotProps' and 'slots' in our API docs. That's a different issue. I was going to address this in a separate PR.

Copy link
Member

Choose a reason for hiding this comment

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

This change was needed so we could read the properties inside slots and its JSDoc.

👌 Got it.

@hbjORbj hbjORbj merged commit c918885 into mui:master Feb 22, 2023
siriwatknp pushed a commit to mnajdova/material-ui that referenced this pull request Feb 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to the documentation package: joy-ui Specific to @mui/joy
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants