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

[TabsList] Drop component prop #37042

Merged
merged 2 commits into from Apr 28, 2023
Merged

Conversation

sai6855
Copy link
Contributor

@sai6855 sai6855 commented Apr 26, 2023

part of #36679

TabsList didn't have dedicated documentation page, so i couldn't update docs like i did here (https://deploy-preview-36770--material-ui.netlify.app/base/react-tabs/#usage-with-typescript)

BREAKING CHANGE

It will be covered by codemod, see #36831

For Base UI components, the component prop value should be moved to slots.root:

 <TabsList
-  component="span"
+  slots={{ root: "span" }}
 />

If using TypeScript, you should add the custom component type as a generic on the TabsList component.

-<TabsList
+<TabsList<typeof CustomComponent>
   slots={{ root: CustomComponent }}
   customProp="foo"
 />

@mui-bot
Copy link

mui-bot commented Apr 26, 2023

Netlify deploy preview

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

Bundle size report

Details of bundle changes

Generated by 🚫 dangerJS against 735d6e9

@hbjORbj hbjORbj merged commit 0476b66 into mui:master Apr 28, 2023
22 of 23 checks passed
binh1298 pushed a commit to binh1298/material-ui that referenced this pull request May 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants