@react-md/menu
Version:
Create menus that auto-position themselves within the viewport and adhere to the accessibility guidelines
24 lines (23 loc) • 558 B
TypeScript
import type { FABPosition } from "@react-md/button";
import type { PositionAnchor } from "@react-md/utils";
/**
* @remarks \@since 5.0.0
* @internal
*/
export declare const noop: () => void;
/**
* @remarks \@since 5.0.0
* @internal
*/
interface DefaultAnchorOptions {
menubar: boolean;
menuitem: boolean;
floating: FABPosition;
horizontal: boolean;
}
/**
* @remarks \@since 5.0.0
* @internal
*/
export declare const getDefaultAnchor: ({ menubar, menuitem, floating, horizontal, }: DefaultAnchorOptions) => PositionAnchor;
export {};