@react-md/menu
Version:
Create menus that auto-position themselves within the viewport and adhere to the accessibility guidelines
12 lines (11 loc) • 415 B
TypeScript
/// <reference types="react" />
interface MenuClickOptions {
onClick?: React.MouseEventHandler<HTMLDivElement>;
onRequestClose: () => void;
}
/**
* This hook is used to create a click handler on the menu that will close the
* menu when any `MenuItem` is clicked.
*/
export declare function useMenuClick({ onClick, onRequestClose, }: MenuClickOptions): React.MouseEventHandler<HTMLDivElement>;
export {};