@codecademy/gamut
72.2.272.2.3-alpha.e0a618.0
dist/Menu/MenuItem.d.ts~
dist/Menu/MenuItem.d.tsModified+2
Index: package/dist/Menu/MenuItem.d.ts
===================================================================
--- package/dist/Menu/MenuItem.d.ts
+++ package/dist/Menu/MenuItem.d.ts
@@ -10,13 +10,15 @@
children?: never;
/** ToolTips will only render for interactive items, otherwise the label will be used as a generic aria-label */
label: ToolTipLabel;
disabled?: boolean;
+ closeOnClick?: boolean;
}
interface MenuTextItem extends HTMLProps, ForwardListItemProps {
icon?: React.ComponentType<GamutIconProps>;
children: React.ReactNode;
label?: ToolTipLabel;
disabled?: boolean;
+ closeOnClick?: never;
}
export declare const MenuItem: import("react").ForwardRefExoticComponent<(Omit<MenuItemIconOnly, "ref"> | Omit<MenuTextItem, "ref">) & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | HTMLLIElement>>;
export {};