UNPKG

@atlaskit/dropdown-menu

Version:

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

11 lines (10 loc) 574 B
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, menuLabel, }: MenuWrapperProps) => JSX.Element; export default MenuWrapper;