diff --git a/packages/mui-base/src/MenuItem/MenuItem.types.ts b/packages/mui-base/src/MenuItem/MenuItem.types.ts index 43f9454a7357aa..63b0b3fadfeaa2 100644 --- a/packages/mui-base/src/MenuItem/MenuItem.types.ts +++ b/packages/mui-base/src/MenuItem/MenuItem.types.ts @@ -1,6 +1,6 @@ import * as React from 'react'; -import { OverrideProps, Simplify } from '@mui/types'; -import { SlotComponentProps } from '../utils'; +import { Simplify } from '@mui/types'; +import { PolymorphicProps, SlotComponentProps } from '../utils'; export interface MenuItemRootSlotPropsOverrides {} @@ -59,9 +59,7 @@ export interface MenuItemTypeMap< export type MenuItemProps< RootComponentType extends React.ElementType = MenuItemTypeMap['defaultComponent'], -> = OverrideProps, RootComponentType> & { - component?: RootComponentType; -}; +> = PolymorphicProps, RootComponentType>; export interface MenuItemState { disabled: boolean;