Skip to content

Commit

Permalink
[docs] Update @mui/base deprecation message (#45064)
Browse files Browse the repository at this point in the history
  • Loading branch information
mj12albert authored Jan 20, 2025
1 parent afebbc0 commit a32b12a
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 13 deletions.
2 changes: 0 additions & 2 deletions docs/data/base/components/accordion/accordion.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,3 @@ newName: Accordion
# Accordion

<p class="description">Accordions let users show and hide sections of related content on a page.</p>

{{"component": "components/productBaseUI/MuiBaseDeprecation", "newComponentName": "Accordion", "newComponentUrl": "https://base-ui.com/react/components/accordion"}}
2 changes: 0 additions & 2 deletions docs/data/base/components/checkbox/checkbox.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,3 @@ newName: Checkbox
# Checkbox

<p class="description">Checkboxes give users binary choices when presented with multiple options in a series.</p>

{{"component": "components/productBaseUI/MuiBaseDeprecation", "newComponentName": "Checkbox", "newComponentUrl": "https://base-ui.com/react/components/checkbox"}}
2 changes: 0 additions & 2 deletions docs/data/base/components/radio-group/radio-group.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,3 @@ newName: Radio
# Radio Group

<p class="description">Radio buttons enable the user to select one option from a set.</p>

{{"component": "components/productBaseUI/MuiBaseDeprecation", "newComponentName": "Radio", "newComponentUrl": "https://base-ui.com/react/components/radio"}}
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,3 @@ newName: Toggle Group
# Toggle Button Group

<p class="description">Toggle Button Groups house sets of buttons with mutually exclusive actions.</p>

{{"component": "components/productBaseUI/MuiBaseDeprecation", "newComponentName": "Toggle Group", "newComponentUrl": "https://base-ui.com/react/components/toggle-group"}}
2 changes: 0 additions & 2 deletions docs/data/base/components/tooltip/tooltip.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,3 @@ newName: Tooltip
# Tooltip

<p class="description">Tooltips display informative text when users hover over, focus on, or tap an element.</p>

{{"component": "components/productBaseUI/MuiBaseDeprecation", "newComponentName": "Tooltip", "newComponentUrl": "https://base-ui.com/react/components/tooltip"}}
7 changes: 4 additions & 3 deletions docs/src/components/productBaseUI/MuiBaseDeprecation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ export default function MuiBaseDeprecation(props: {
<Box component="aside" className="MuiCallout-root MuiCallout-error">
<Icon />
<Box className="MuiCallout-content">
@mui/base has been deprecated and has been replaced by Base UI. Please use the Base UI{' '}
<a href={props.newComponentUrl}>{props.newComponentName} component</a> instead.
@mui/base has been deprecated and has been replaced by Base UI. We strongly recommend
using the Base UI <a href={props.newComponentUrl}>{props.newComponentName} component</a>{' '}
instead.
</Box>
</Box>
</MarkdownElement>
Expand All @@ -26,7 +27,7 @@ export default function MuiBaseDeprecation(props: {
<Icon />
<Box className="MuiCallout-content">
@mui/base has been deprecated and has been replaced by{' '}
<a href="https://www.base-ui.com">Base UI</a>. We strongly advise using the new package
<a href="https://www.base-ui.com">Base UI</a>. We strongly recommend using the new package
instead.
</Box>
</Box>
Expand Down

0 comments on commit a32b12a

Please sign in to comment.