import React from "react"; import { MenuItemProps as BlueprintMenuItemProps } from "@blueprintjs/core"; import { ValidIconName } from "../Icon/canonicalIconNames"; import { TestIconProps } from "./../Icon/TestIcon"; export interface MenuItemProps extends Omit, Omit, "onClick" | "onFocus" | "target" | "children"> { /** * If set the icon is displayed on the left side of the menu item. */ icon?: ValidIconName | string[] | React.ReactElement; /** * Submenu. */ children?: React.ReactNode; /** * Tooltip, but only added to the label, not to the full menu item. */ tooltip?: string | React.JSX.Element; /** * Visual intent color to apply to element. */ intent?: BlueprintMenuItemProps["intent"] | "accent"; } /** * Single item, used as child inside `Menu`. */ export declare const MenuItem: ({ children, className, icon, onClick, href, text, tooltip, intent, ...restProps }: MenuItemProps) => React.JSX.Element; export default MenuItem;