import { ButtonProps } from '../Button'; import { IconProps } from '../Icon'; import { DataTrackingId } from '../../types'; import { MenuCommonProps } from './types'; /** * Props for the Menu component * @extends Omit * @extends MenuCommonProps */ export type MenuProps = Omit & MenuCommonProps & { /** * Icon to display on the menu button */ icon?: IconProps["svg"]; } & DataTrackingId; /** * Menu component for displaying dropdown menus with navigation and actions. * * Features: * - Supports both controlled and uncontrolled modes * - Automatic positioning with fallback strategies * - Keyboard navigation with arrow keys and escape * - Custom trigger elements * - Nested menu support * - Automatic height adjustment * - Scroll indicators for overflow content * - Fully accessible with proper ARIA attributes * - Outside click detection and handling * * @example * * console.log('Cut clicked')} /> * console.log('Copy clicked')} /> * * console.log('Copy as Text')} /> * console.log('Copy as Video')} /> * * console.log('Copy as PNG')} /> * console.log('Copy as JPG')} /> * * */ export declare const Menu: ((props: MenuProps) => import("react/jsx-runtime").JSX.Element) & { /** * MenuItem component for individual menu options. * * Features: * - Supports icons and labels * - Keyboard navigation support * - Disabled state handling * - Automatic menu closing on selection * - Fully accessible with proper ARIA attributes * - Focus management and tab index handling * - Click and mouse enter event handling * * @example * console.log('Edit profile clicked')} * /> */ Item: import('react').ForwardRefExoticComponent<{ icon?: IconProps["svg"]; label: import('react').ReactNode; disabled?: boolean; } & Omit, HTMLButtonElement>, "ref"> & DataTrackingId & import('react').ButtonHTMLAttributes & import('react').RefAttributes>; };