import * as React from 'react'; import type { BaseUIComponentProps } from '../../utils/types'; /** * An unstyled menu item to be used within a Menu. * * Demos: * * - [Menu](https://base-ui.netlify.app/components/react-menu/) * * API: * * - [MenuItem API](https://base-ui.netlify.app/components/react-menu/#api-reference-MenuItem) */ declare const MenuItem: React.ForwardRefExoticComponent>; declare namespace MenuItem { type OwnerState = { disabled: boolean; highlighted: boolean; }; interface Props extends BaseUIComponentProps<'div', OwnerState> { children?: React.ReactNode; /** * The click handler for the menu item. */ onClick?: React.MouseEventHandler; /** * If `true`, the menu item will be disabled. * @default false */ disabled?: boolean; /** * A text representation of the menu item's content. * Used for keyboard text navigation matching. */ label?: string; /** * The id of the menu item. */ id?: string; /** * If `true`, the menu will close when the menu item is clicked. * * @default true */ closeOnClick?: boolean; } } export { MenuItem };