UNPKG

@react-md/menu

Version:

Create menus that auto-position themselves within the viewport and adhere to the accessibility guidelines

14 lines (13 loc) 484 B
import { MutableRefObject } from "react"; export interface MenuEventsProps { menuRef: MutableRefObject<HTMLDivElement | null>; cancelled: boolean; defaultFocus: "first" | "last" | string; } /** * This is just a simple component that is used with the `Menu` component to * handle the initial focus on mount and re-focusing a previous element on * unmount. * @private */ export declare function MenuEvents({ menuRef, cancelled, defaultFocus, }: MenuEventsProps): null;