-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
Conversation
Netlify deploy previewhttps://deploy-preview-36271--material-ui.netlify.app/ Bundle size report |
01adb39
to
4c93697
Compare
b8dcd1b
to
9718f5f
Compare
export type CreateSlotsAndSlotProps<Slots, K extends Record<keyof Slots, any>> = { | ||
slots?: Partial<Slots>; |
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.
Is my understanding is correct that this change is necessary for the API generation?
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.
- 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.
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.
This change was needed so we could read the properties inside slots and its JSDoc.
👌 Got it.
Preview: https://deploy-preview-36271--material-ui.netlify.app/joy-ui/api/alert/#slots <- Alert API Doc