Skip to content

Commit 66a8c09

Browse files
committed
Revert "[Box] Remove component from TypeMap (mui#38168)"
This reverts commit de38693.
1 parent 03e1598 commit 66a8c09

File tree

3 files changed

+5
-165
lines changed

3 files changed

+5
-165
lines changed

packages/mui-system/src/Box/Box.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,11 @@ export interface BoxTypeMap<
178178
props: AdditionalProps &
179179
SystemProps<Theme> & {
180180
children?: React.ReactNode;
181+
/**
182+
* The component used for the root node.
183+
* Either a string to use a HTML element or a component.
184+
*/
185+
component?: React.ElementType;
181186
ref?: React.Ref<unknown>;
182187
/**
183188
* The system prop that allows defining system overrides as well as additional CSS styles.

packages/mui-system/test/typescript/moduleAugmentation/boxSx.spec.tsx

Lines changed: 0 additions & 161 deletions
This file was deleted.

packages/mui-system/test/typescript/moduleAugmentation/boxSx.tsconfig.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)