Skip to content

Commit

Permalink
[material-ui] Bring back GridProps and GridTypeMap (#43717)
Browse files Browse the repository at this point in the history
  • Loading branch information
DiegoAndai authored Sep 13, 2024
1 parent e513ea3 commit 40c7199
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/mui-material/src/Grid/Grid.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ export interface GridOwnProps extends SystemProps<Theme>, Breakpoints {
zeroMinWidth?: boolean;
}

/**
* @deprecated Use the [`Grid2`](https://mui.com/material-ui/react-grid2/) component instead.
*/
export interface GridTypeMap<
AdditionalProps = {},
RootComponent extends React.ElementType = 'div',
Expand All @@ -171,6 +174,9 @@ export interface GridTypeMap<
*/
declare const Grid: OverridableComponent<GridTypeMap>;

/**
* @deprecated Use the [`Grid2`](https://mui.com/material-ui/react-grid2/) component instead.
*/
export type GridProps<
RootComponent extends React.ElementType = GridTypeMap['defaultComponent'],
AdditionalProps = {},
Expand Down
1 change: 1 addition & 0 deletions packages/mui-material/src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ export { default as FormLabel } from './FormLabel';
export * from './FormLabel';

export { default as Grid } from './Grid';
export { GridProps, GridTypeMap } from './Grid';

export { default as Grid2 } from './Grid2';
export * from './Grid2';
Expand Down

0 comments on commit 40c7199

Please sign in to comment.