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

[Tab][base] Drop component prop #36768

Merged
merged 3 commits into from Apr 28, 2023
Merged

Conversation

sai6855
Copy link
Contributor

@sai6855 sai6855 commented Apr 3, 2023

part of #36679

BREAKING CHANGE

It will be covered by codemod, see #36831

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

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

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

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

@sai6855 sai6855 added breaking change package: base-ui Specific to @mui/base component: tabs This is the name of the generic UI component, not the React module! labels Apr 3, 2023
@mui-bot
Copy link

mui-bot commented Apr 3, 2023

Netlify deploy preview

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

Bundle size report

Details of bundle changes

Generated by 🚫 dangerJS against b2df501

@sai6855 sai6855 requested a review from mnajdova April 3, 2023 16:44
@sai6855 sai6855 requested a review from mnajdova April 4, 2023 16:38
@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label Apr 11, 2023
@sai6855 sai6855 marked this pull request as draft April 12, 2023 15:04
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged label Apr 14, 2023
@sai6855 sai6855 marked this pull request as ready for review April 14, 2023 11:35
@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label Apr 24, 2023
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged label Apr 26, 2023
@sai6855 sai6855 requested a review from hbjORbj April 26, 2023 15:35
@hbjORbj hbjORbj changed the title [TabUnstyled] Drop component prop [Tab][base] Drop component prop Apr 28, 2023
@hbjORbj hbjORbj merged commit ed404b0 into mui:master Apr 28, 2023
21 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
breaking change component: tabs This is the name of the generic UI component, not the React module! package: base-ui Specific to @mui/base
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants