import { GetClasses } from '../../typeUtils'; import { MenuItemProps } from './MenuItem'; import { MenuInitialState } from 'reakit/Menu'; import * as React from 'react'; import 'focus-visible'; import { MenuGroupHeadingProps } from './MenuGroupHeading'; export declare const MenuStylesKey = "ChromaMenu"; export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"title" | "root">; export declare type MenuClasses = GetClasses; export interface MenuProps extends Pick { ['aria-label']: string; anchorElement?: any; children?: React.ReactNode; className?: string; items?: Array | React.ReactElement>; title?: string; usePortal?: boolean; } /** * A component for rendering actionable options. * * ### Accessibility * * - The anchor element has `aria-expanded` and `aria-haspopup` set appropriately. * - The Menu and Menu Item components have the `role="menu"` and * `role="menuitem"`. * - Pressing `Enter` on the focused anchor element expands the menu. * - Pressing `Escape` closes the expanded menu and returns focus to the anchor * element. * - Pressing `up` or `down` arrow keys navigates between the Menu Items. * - Pressing `Enter` on a Menu Item "clicks" it. * * ### Links * * - [Component Source](https://github.com/lifeomic/chroma-react/blob/master/src/components/Menu/Menu.tsx) * - [Story Source](https://github.com/lifeomic/chroma-react/blob/master/stories/components/Menu/Menu.stories.tsx) */ export declare const Menu: React.FC;