UNPKG

@react-md/menu

Version:

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

23 lines (22 loc) 728 B
/// <reference types="react" /> import type { BaseMenuButtonProps } from "./types"; /** * @internal * @remarks \@since 5.0.0 */ export interface MenuButtonProps extends BaseMenuButtonProps { /** * Boolean if the menu is currently visible which will rotate the dropdown * icon when the {@link BaseMenuButtonProps.disableDropdownIcon} is not * `true`. */ visible: boolean; } /** * This is just an internal component that handles rendering the button for a * `DropdownMenu` with a conditional dropdown icon. * * @internal * @remarks \@since 5.0.0 */ export declare const MenuButton: import("react").ForwardRefExoticComponent<MenuButtonProps & import("react").RefAttributes<HTMLButtonElement>>;