/** * A hook that exposes data for a given `Menu` component to its descendants. */ export function useMenuButtonContext(): { isExpanded: any; }; /** * Menu is the wrapper component for the other components. * No DOM element is rendered. */ export const Menu: React.ForwardRefExoticComponent>; /** * MenuButton wraps a DOM `button` that toggles the opening and closing of the * dropdown menu. Must be rendered inside of a ``. */ export const MenuButton: React.ForwardRefExoticComponent>; /** * MenuItemImpl is the base implementation of a `MenuItem` or `MenuLink`. */ export const MenuItemImpl: React.ForwardRefExoticComponent>; /** * MenuItem handles menu selection. Must be a direct child of a ``. */ export const MenuItem: React.ForwardRefExoticComponent>; /** * MenuItems is a low-level wrapper for menu items. * Compose it with `MenuPopover` for more control over the nested components * and their rendered DOM nodes, or if you need to nest arbitrary components * between the outer wrapper and your list. */ export const MenuItems: React.ForwardRefExoticComponent>; /** * MenuLink handles linking to a different page in the menu. By default it * renders ``, but also accepts any other kind of Link as long as the `Link` * uses the `React.React.forwardRef` API. * Must be a direct child of a ``. */ export const MenuLink: React.ForwardRefExoticComponent>; /** * MenuList wraps a DOM element that renders the menu items. Must be rendered * inside of a ``. */ export const MenuList: React.ForwardRefExoticComponent>; /** * MenuPopover is a low-level wrapper for the popover that appears when a menu * button is open. */ export const MenuPopover: React.ForwardRefExoticComponent>; import * as React from 'react';