-
-
Notifications
You must be signed in to change notification settings - Fork 32.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 @mui/base deprecation callout #45030
Conversation
<Alert severity="warning"> | ||
<code>@mui/base</code> has been deprecated, please use the new Base UI{' '} | ||
<Link href={props.newComponentUrl}>{props.newComponentName} Component</Link> instead. | ||
</Alert> | ||
); | ||
} | ||
// console.log(props); | ||
return ( | ||
<Alert severity="warning"> | ||
<code>@mui/base</code> has been deprecated, if you're looking for an unstyled React | ||
component library try out <Link href="https://www.base-ui.com">Base UI</Link> | ||
</Alert> |
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.
Please suggest some exact wording if this seems too short (or too blunt) @samuelsycamore @colmtuite 🙏
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.
For this text, how about:
@mui/base
has been deprecated and replaced by Base UI. We strongly advise using the newer package instead.
and for the components that have a Base UI equivalent we can say:
@mui/base
has been deprecated and replaced by Base UI. Please use the Base UI {{Whatever}} component instead.
dcf6140
to
b3000e9
Compare
would it make sense to also deprecate the actual |
@@ -3,6 +3,8 @@ productId: base-ui | |||
title: React Radio Group component | |||
githubLabel: 'component: radio' | |||
waiAria: https://www.w3.org/WAI/ARIA/apg/patterns/radio/ | |||
newUrl: https://base-ui.com/react/components/radio |
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 comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
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.
A lot of them are actually done and exist in Base UI now (RadioGroup, ToggleGroup, Tooltip), maybe we can just repeat the deprecation message
For the ones that aren't (Drawer, Rating) it could be useful to keep the link to the GH issue if it's still open and exists in the Base UI repo
<Alert severity="warning"> | ||
<code>@mui/base</code> has been deprecated, please use the new Base UI{' '} | ||
<Link href={props.newComponentUrl}>{props.newComponentName} Component</Link> instead. | ||
</Alert> | ||
); | ||
} | ||
// console.log(props); | ||
return ( | ||
<Alert severity="warning"> | ||
<code>@mui/base</code> has been deprecated, if you're looking for an unstyled React | ||
component library try out <Link href="https://www.base-ui.com">Base UI</Link> | ||
</Alert> |
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.
For this text, how about:
@mui/base
has been deprecated and replaced by Base UI. We strongly advise using the newer package instead.
and for the components that have a Base UI equivalent we can say:
@mui/base
has been deprecated and replaced by Base UI. Please use the Base UI {{Whatever}} component instead.
@@ -3,6 +3,8 @@ productId: base-ui | |||
title: React Radio Group component | |||
githubLabel: 'component: radio' | |||
waiAria: https://www.w3.org/WAI/ARIA/apg/patterns/radio/ | |||
newUrl: https://base-ui.com/react/components/radio |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
6ee50a3
to
edb4154
Compare
We could probably do this as soon as this callout is deployed to docs? Marking the package as deprecated on npm can probably do any time though, will discuss this next week with the team~ |
I'll open a separate PR just for the |
Fixed in 4105d0c ~ needed to use |
@mj12albert I'm seeing duplicate messages "Please" feels unusual/odd to me, or the wrong tone. I expected something like "We strongly recommend using" |
It's intentional ~ but here's the PR to update it: #45064 @colmtuite |
Part of #44910
Added a callout to all the
/base-ui/*
pages (example)Removed the "Planned"/"Preview" chips from the sidebar
Some previously "planned" components are done in the new Base UI, the callout is just repeated in the body e.g. RadioGroup
Some planned ones are still not yet done in the new package, the body keeps the link to the related GH issue but the text is changed a bit, e.g. Drawer
I have followed (at least) the PR section of the contributing guide.