Skip to content

[core] Remove GridLegacy component#47956

Merged
siriwatknp merged 7 commits intomui:masterfrom
siriwatknp:remove-grid-legacy
Mar 16, 2026
Merged

[core] Remove GridLegacy component#47956
siriwatknp merged 7 commits intomui:masterfrom
siriwatknp:remove-grid-legacy

Conversation

@siriwatknp
Copy link
Copy Markdown
Member

@siriwatknp siriwatknp commented Mar 12, 2026

Summary

  • Remove the deprecated GridLegacy (v1 Grid) component entirely: source, types, tests, docs, demos, and API translations
  • Remove MuiGridLegacy from theme components types (ComponentsProps, ComponentsOverrides, ComponentsVariants)
  • Migrate premium theme examples (onepirate, paperbase) from GridLegacy to Grid v2 API
  • Add breaking change entry to upgrade-to-v9 migration guide

Test plan

  • Verify @mui/material builds without GridLegacy exports
  • Verify docs site builds without grid-legacy pages
  • Verify premium theme examples render correctly with Grid v2
  • TypeScript compilation passes without GridLegacy types

Remove the deprecated GridLegacy (v1 Grid) component, its docs,
tests, theme types, and all references. Migrate premium themes
from GridLegacy to Grid v2 API.
@mui-bot
Copy link
Copy Markdown

mui-bot commented Mar 12, 2026

Netlify deploy preview

Bundle size report

Bundle Parsed size Gzip size
@mui/material ▼-4.78KB(-0.92%) ▼-1.5KB(-0.99%)
@mui/lab 0B(0.00%) 0B(0.00%)
@mui/system 0B(0.00%) 0B(0.00%)
@mui/utils 0B(0.00%) 0B(0.00%)

Details of bundle changes

Generated by 🚫 dangerJS against bc922f1

@siriwatknp siriwatknp added breaking change Introduces changes that are not backward compatible. component: Grid The React component. package: material-ui Specific to Material UI. v9.x labels Mar 12, 2026
@zannager zannager requested a review from DiegoAndai March 12, 2026 13:58
@github-actions github-actions Bot added the PR: out-of-date The pull request has merge conflicts and can't be merged. label Mar 13, 2026
@siriwatknp siriwatknp removed the request for review from DiegoAndai March 13, 2026 06:33
# Conflicts:
#	docs/data/material/migration/upgrade-to-v9/upgrade-to-v9.md
@github-actions github-actions Bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged. label Mar 16, 2026
Comment thread docs/data/material/migration/upgrade-to-grid-v2/upgrade-to-grid-v2.md Outdated
Signed-off-by: Siriwat K <siriwatkunaporn@gmail.com>
Copy link
Copy Markdown
Member

@mj12albert mj12albert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still a few links in old blog posts:

We have added support for [row & column](https://mui.com/material-ui/react-grid-legacy/#row-column-spacing) spacing:

Copy link
Copy Markdown
Member

@ZeeshanTamboli ZeeshanTamboli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good after resolving @mj12albert's comment.

@siriwatknp siriwatknp enabled auto-merge (squash) March 16, 2026 11:01
@siriwatknp siriwatknp merged commit 9163884 into mui:master Mar 16, 2026
23 checks passed
siriwatknp added a commit to siriwatknp/material-ui that referenced this pull request Mar 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking change Introduces changes that are not backward compatible. component: Grid The React component. package: material-ui Specific to Material UI. v9.x

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants