Skip to content

Commit 08dce48

Browse files
authored
[material-ui][mui-system] Stabilize Grid v2 and deprecate Grid v1 (#43054)
1 parent f160039 commit 08dce48

File tree

153 files changed

+608
-295
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

153 files changed

+608
-295
lines changed

benchmark/browser/scenarios/grid-system/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as React from 'react';
2-
import Grid from '@mui/system/Unstable_Grid';
2+
import Grid from '@mui/system/Grid';
33

44
export default function GridSystem() {
55
return (

docs/data/material/components/grid/grid.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ Material Design's responsive UI is based on a 12-column grid layout.
1919
The `Grid` component shouldn't be confused with a data grid; it is closer to a layout grid. For a data grid head to [the `DataGrid` component](/x/react-data-grid/).
2020
:::
2121

22+
:::warning
23+
The `Grid` component has been deprecated. Please use the [Grid v2](/material-ui/react-grid2/) instead. See how to migrate in the [Grid v2 migration guide](/material-ui/migration/migration-grid-v2/) and [Material UI v6 migration guide](/material-ui/migration/migrating-to-v6/).
24+
:::
25+
2226
## How it works
2327

2428
The grid system is implemented with the `Grid` component:

docs/data/material/components/grid2/AutoGrid.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as React from 'react';
22
import { styled } from '@mui/material/styles';
33
import Box from '@mui/material/Box';
44
import Paper from '@mui/material/Paper';
5-
import Grid from '@mui/material/Unstable_Grid2';
5+
import Grid from '@mui/material/Grid2';
66

77
const Item = styled(Paper)(({ theme }) => ({
88
backgroundColor: '#fff',

docs/data/material/components/grid2/AutoGrid.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as React from 'react';
22
import { styled } from '@mui/material/styles';
33
import Box from '@mui/material/Box';
44
import Paper from '@mui/material/Paper';
5-
import Grid from '@mui/material/Unstable_Grid2';
5+
import Grid from '@mui/material/Grid2';
66

77
const Item = styled(Paper)(({ theme }) => ({
88
backgroundColor: '#fff',

docs/data/material/components/grid2/BasicGrid.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as React from 'react';
22
import { styled } from '@mui/material/styles';
33
import Box from '@mui/material/Box';
44
import Paper from '@mui/material/Paper';
5-
import Grid from '@mui/material/Unstable_Grid2';
5+
import Grid from '@mui/material/Grid2';
66

77
const Item = styled(Paper)(({ theme }) => ({
88
backgroundColor: '#fff',

docs/data/material/components/grid2/BasicGrid.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as React from 'react';
22
import { styled } from '@mui/material/styles';
33
import Box from '@mui/material/Box';
44
import Paper from '@mui/material/Paper';
5-
import Grid from '@mui/material/Unstable_Grid2';
5+
import Grid from '@mui/material/Grid2';
66

77
const Item = styled(Paper)(({ theme }) => ({
88
backgroundColor: '#fff',

docs/data/material/components/grid2/CenteredElementGrid.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as React from 'react';
22
import Avatar from '@mui/material/Avatar';
33
import Box from '@mui/material/Box';
4-
import Grid from '@mui/material/Unstable_Grid2';
4+
import Grid from '@mui/material/Grid2';
55

66
export default function CenteredElementGrid() {
77
return (

docs/data/material/components/grid2/CenteredElementGrid.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as React from 'react';
22
import Avatar from '@mui/material/Avatar';
33
import Box from '@mui/material/Box';
4-
import Grid from '@mui/material/Unstable_Grid2';
4+
import Grid from '@mui/material/Grid2';
55

66
export default function CenteredElementGrid() {
77
return (

docs/data/material/components/grid2/ColumnsGrid.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as React from 'react';
22
import { styled } from '@mui/material/styles';
33
import Box from '@mui/material/Box';
44
import Paper from '@mui/material/Paper';
5-
import Grid from '@mui/material/Unstable_Grid2';
5+
import Grid from '@mui/material/Grid2';
66

77
const Item = styled(Paper)(({ theme }) => ({
88
backgroundColor: '#fff',

docs/data/material/components/grid2/ColumnsGrid.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as React from 'react';
22
import { styled } from '@mui/material/styles';
33
import Box from '@mui/material/Box';
44
import Paper from '@mui/material/Paper';
5-
import Grid from '@mui/material/Unstable_Grid2';
5+
import Grid from '@mui/material/Grid2';
66

77
const Item = styled(Paper)(({ theme }) => ({
88
backgroundColor: '#fff',

0 commit comments

Comments
 (0)