You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: apps/material-react-table-docs/pages/docs/getting-started/migrating-to-v3.mdx
+48-6
Original file line number
Diff line number
Diff line change
@@ -17,8 +17,9 @@ This will be the easiest MRT upgrade ever! Material React Table V3 is mostly jus
17
17
18
18
### New Feature Highlights
19
19
20
-
1. Compatible with Material UI V6
21
-
2.**Almost no other changes**. MRT is not taking advantage of the new optional features in Material UI V6 yet. MRT V3 will serve as an easy upgrade target for those who are just looking to upgrade their Material UI package versions.
20
+
1. Compatible with Material UI V6 with generally better performance across the board
21
+
2. Keyboard navigation improvements that are now included by default
22
+
3.**Almost no other changes**. MRT is not taking advantage of the new optional features in Material UI V6 yet. MRT V3 will serve as an easy upgrade target for those who are just looking to upgrade their Material UI package versions.
You should now be on Material React Table V3! Look for any code or type errors in your project and fix them as needed.
52
53
53
54
### Breaking Changes
54
55
55
-
-`@mui/material` and `@mui/icons-material` v6.0.0 are now minimum required versions of Material UI packages
56
+
-`@mui/material` and `@mui/icons-material` v6.0.0 are now minimum required versions of Material UI packages (you might be able to get away with lower MUI versions for a while, but eventually MUI V6 APIs will be used internally by MRT and your project will break)
56
57
-`@mui/x-date-pickers` v7.15.0 is now a minimum required dependency
57
-
58
58
- Removed deprecated `MRT_Virtualizer` type in favor of separate `MRT_RowVirtualizer` and `MRT_ColumnVirtualizer` types
59
-
60
59
- Removed deprecated `text` in favor of the more consistent `label` type in dropdown/autocomplete/select option types.
60
+
- Deprecated several `mui*Props` table options that were column-specific. These table options should either be specified in column defs or in the `defaultColumn` table option.
61
+
-`muiColumnActionsButtonProps`
62
+
-`muiColumnDragHandleProps`
63
+
-`muiCopyButtonProps`
64
+
-`muiEditTextFieldProps`
65
+
-`muiFilterAutocompleteProps`
66
+
-`muiFilterCheckboxProps`
67
+
-`muiFilterDatePickerProps`
68
+
-`muiFilterDateTimePickerProps`
69
+
-`muiFilterSliderProps`
70
+
-`muiFilterTextFieldProps`
71
+
-`muiFilterTimePickerProps`
72
+
-`muiSkeletonProps`
73
+
-`muiTableBodyCellProps`
74
+
-`muiTableHeadCellProps`
75
+
-`renderCellActionMenuItems`
76
+
-`renderColumnActionsMenuItems`
77
+
-`renderColumnFilterModeMenuItems`
78
+
79
+
```diff
80
+
const table = useTable({
81
+
columns,
82
+
data,
83
+
// Recommended to specify these table options in the defaultColumn instead
84
+
+ defaultColumn: { // applies to all columns
85
+
+ muiTableBodyCellProps: {
86
+
+ align: 'center',
87
+
+ },
88
+
+ muiFilterAutocompleteProps: {
89
+
+ sx: { my: 2 },
90
+
+ },
91
+
+ },
92
+
// these table options will be removed in MRT V4
93
+
- muiTableBodyCellProps: {
94
+
- align: 'center',
95
+
- },
96
+
- muiFilterAutocompleteProps: {
97
+
- sx: { my: 2 },
98
+
- },
99
+
)};
100
+
```
101
+
102
+
You can be lazy with these changes. These table options are just marked as deprecated, but they will still work until MRT V4.
61
103
62
104
> Can I uninstall Emotion Yet? No, Emotion is still required for Material React Table V3, but it won't be for long. MRT V4 will remove the Emotion dependency in favor of [Pigment CSS](https://mui.com/blog/introducing-pigment-css/).
0 commit comments