UNPKG

@atlaskit/dropdown-menu

Version:

A dropdown menu displays a list of actions or options to a user.

12 lines (11 loc) 595 B
/// <reference types="react" /> import { type MenuWrapperProps } from '../../types'; /** * * MenuWrapper wraps all the menu items. * It handles the logic to close the menu when a MenuItem is clicked, but leaves it open * if a CheckboxItem or RadioItem is clicked. * It also sets focus to the first menu item when opened. */ declare const MenuWrapper: ({ children, isLoading, maxHeight, maxWidth, onClose, onUpdate, statusLabel, setInitialFocusRef, shouldRenderToParent, spacing, testId, isTriggeredUsingKeyboard, autoFocus, }: MenuWrapperProps) => JSX.Element; export default MenuWrapper;