-
-
Notifications
You must be signed in to change notification settings - Fork 1.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] Add the slots
concept introduction page
#13881
Conversation
Deploy preview: https://deploy-preview-13881--material-ui-x.netlify.app/ Updated pages: |
## Slot props | ||
|
||
To override default props or pass custom props to slot components, use the `slotProps` prop. | ||
## Custom slot props with TypeScript |
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.
I kept the module augmentation doc here for now because only the grid has it so it felt weird to movie it fully to the shared page.
@@ -21,6 +20,13 @@ const pages: MuiPage[] = [ | |||
{ pathname: `/x/introduction/roadmap` }, | |||
], | |||
}, | |||
{ | |||
pathname: '/x/common-features-group', |
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.
Do we have other pages to move here?
It felt weird to me to put this in "Introduction", which is why I chose to create a new folder
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.
Maybe the loacalization. Even if it's not yet supported for chart
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.
Might make sense at some point indeed
I was thinking about existing pages, but for new pages it's definitely a good candidate once we have at least 3 sets of components supporting it.
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
d706fac
to
1be9063
Compare
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
7dbfb6d
to
4cba94a
Compare
Signed-off-by: Flavien DELANGLE <flaviendelangle@gmail.com> Co-authored-by: Andrew Cherniavskii <andrew.cherniavskii@gmail.com> Co-authored-by: Lukas Tyla <llukas.tyla@gmail.com>
Closes #13354
Doc preview
Todo
PropsFromSlot
to charts and tree view