File tree Expand file tree Collapse file tree 3 files changed +14
-14
lines changed
docs/data/material/migration/migrating-from-deprecated-apis
packages/mui-codemod/src/deprecations/tooltip-props/test-cases Expand file tree Collapse file tree 3 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -1693,12 +1693,12 @@ All of the Tooltip's slot (`*Component`) props were deprecated in favor of equiv
1693
1693
1694
1694
``` diff
1695
1695
<Tooltip
1696
- - PopperComponent={CustomPopperComponent}
1697
- - TransitionComponent={CustomTransitionComponent}
1698
- + slots={{
1699
- + popper: CustomPopperComponent,
1700
- + transition: CustomTransitionComponent,
1701
- + }}
1696
+ - PopperComponent={CustomPopperComponent}
1697
+ - TransitionComponent={CustomTransitionComponent}
1698
+ + slots={{
1699
+ + popper: CustomPopperComponent,
1700
+ + transition: CustomTransitionComponent,
1701
+ + }}
1702
1702
/>
1703
1703
```
1704
1704
@@ -1708,12 +1708,12 @@ All of the Tooltip's slot props (`*Props`) props were deprecated in favor of equ
1708
1708
1709
1709
``` diff
1710
1710
<Tooltip
1711
- - PopperProps={CustomPopperProps}
1712
- - TransitionProps={CustomTransitionProps}
1713
- + slotProps={{
1714
- + popper: CustomPopperProps,
1715
- + transition: CustomTransitionProps,
1716
- + }}
1711
+ - PopperProps={CustomPopperProps}
1712
+ - TransitionProps={CustomTransitionProps}
1713
+ + slotProps={{
1714
+ + popper: CustomPopperProps,
1715
+ + transition: CustomTransitionProps,
1716
+ + }}
1717
1717
/>
1718
1718
```
1719
1719
Original file line number Diff line number Diff line change 1
1
import Tooltip from '@mui/material/Tooltip' ;
2
- import { Tooltip as MyTooltip } from '@mui/material' ;
2
+ import { Tooltip as MyTooltip } from '@mui/material' ;
3
3
4
4
< Tooltip
5
5
components = { {
Original file line number Diff line number Diff line change 1
1
import Tooltip from '@mui/material/Tooltip' ;
2
- import { Tooltip as MyTooltip } from '@mui/material' ;
2
+ import { Tooltip as MyTooltip } from '@mui/material' ;
3
3
4
4
< Tooltip
5
5
slots = { {
You can’t perform that action at this time.
0 commit comments