UNPKG

@atlaskit/menu

Version:

A list of options to help users navigate, or perform actions.

18 lines (17 loc) 742 B
import type { MenuItemPrimitiveProps } from '../../types'; /** * __Menu item primitive__ * * Menu item primitive contains all the styles for menu items, * including support for selected, disabled, and interaction states. * * Using children as function prop you wire up this to your own host element. * * ```jsx * <MenuItemPrimitive> * {({ children, ...props }) => <button {...props}>{children}</button>} * </MenuItemPrimitive> * ``` */ declare const MenuItemPrimitive: ({ children, title, description, iconAfter, iconBefore, className: UNSAFE_externalClassName, shouldTitleWrap, shouldDescriptionWrap, isDisabled, isSelected, isTitleHeading, testId, }: MenuItemPrimitiveProps) => JSX.Element; export default MenuItemPrimitive;