import * as React from 'react'; import { Simplify } from '@mui/types'; import { PolymorphicProps, SlotComponentProps } from '../utils'; export interface MenuItemRootSlotPropsOverrides { } export type MenuItemOwnerState = Simplify; export interface MenuItemOwnProps { children?: React.ReactNode; className?: string; onClick?: React.MouseEventHandler; /** * If `true`, the menu item will be disabled. * @default false */ disabled?: boolean; /** * The components used for each slot inside the MenuItem. * Either a string to use a HTML element or a component. * @default {} */ slots?: MenuItemSlots; /** * The props used for each slot inside the MenuItem. * @default {} */ slotProps?: { root?: SlotComponentProps<'li', MenuItemRootSlotPropsOverrides, MenuItemOwnerState>; }; /** * A text representation of the menu item's content. * Used for keyboard text navigation matching. */ label?: string; } export interface MenuItemSlots { /** * The component that renders the root. * @default 'li' */ root?: React.ElementType; } export interface MenuItemTypeMap { props: MenuItemOwnProps & AdditionalProps; defaultComponent: RootComponentType; } export type MenuItemProps = PolymorphicProps, RootComponentType>; export interface MenuItemState { disabled: boolean; highlighted: boolean; }