import { MenuItemProps } from "./MenuItem.cjs"; import { MenuSectionProps } from "./MenuSection.cjs"; import { PopoverProps } from "../Overlay/Popover.cjs"; import { Key, ReactNode } from "react"; import RAC from "react-aria-components"; type RemovedProps = 'isOpen' | 'className' | 'style' | 'children'; export interface MenuProps extends Omit, Omit, RemovedProps> { /** * Whether the menu is open. * @default false */ open?: RAC.MenuTriggerProps['isOpen']; /** * Placement of the popover. * @default 'bottom' */ placement?: PopoverProps['placement']; /** * The label for the menu trigger button. */ label?: ReactNode; /** * Visual variant of the component. Which values exist is defined by the theme * and listed in the "Appearance" section of the component's documentation. */ variant?: 'default' | 'ghost' | (string & {}); /** * Size of the component. Which values exist is defined by the theme and listed * in the "Appearance" section of the component's documentation. */ size?: 'default' | 'small' | 'large' | 'icon' | (string & {}); /** * Handler that is called when an action is performed on an item. */ onAction?: (key: Key) => void; /** * The contents of the menu. */ children?: ReactNode; /** * Whether the menu trigger is disabled. */ disabled?: boolean; } declare const Menu: { ({ children, label, variant, size, disabled, open, placement, "aria-label": ariaLabel, ...props }: MenuProps): import("react").JSX.Element; Item: ({ children, variant, size, ...props }: MenuItemProps) => import("react").JSX.Element; Section: ({ children, title, ...props }: MenuSectionProps) => import("react").JSX.Element; }; export { Menu };