import { CreateSlotsAndSlotProps, SlotCommonProps, SlotProps } from '../types/slot'; import { OverrideProps } from '@mui/types'; export type MenuListSlot = 'root'; export interface MenuListSlots { /** * The component that renders the root. * @default 'ul' */ root?: React.ElementType; } export type MenuListSlotsAndSlotProps = CreateSlotsAndSlotProps; }>; export interface MenuListTypeMap

{ props: P & MenuListSlotsAndSlotProps & { /** * The `size` attribute for the MenuListItem. If both `size` and `density` are provided, `size` will take precedence. * @default 'medium' */ size?: 'small' | 'medium' | 'large'; /** * The `density` attribute for the MenuListItem. It will be mapped to `size` internally. * @deprecated Use the `size` prop instead. The `density` prop will be removed in future major release. */ density?: 'compact' | 'standard' | 'comfortable'; /** * Function called when the items displayed in the menu change. */ onItemsChange?: (items: string[]) => void; }; defaultComponent: D; } export type MenuListProps = OverrideProps, D>; export interface MenuListOwnerState extends MenuListProps { }