diff --git a/ui/components/ui/menu/menu.js b/ui/components/ui/menu/menu.js
index 029c713c8..148239eb7 100644
--- a/ui/components/ui/menu/menu.js
+++ b/ui/components/ui/menu/menu.js
@@ -4,6 +4,15 @@ import { createPortal } from 'react-dom';
import { usePopper } from 'react-popper';
import classnames from 'classnames';
+/**
+ * @deprecated The `
` component has been deprecated in favor of the new `` component from the component-library.
+ * Please update your code to use the new `` component instead, which can be found at ui/components/component-library/popover/popover.tsx.
+ * You can find documentation for the new `Popover` component in the MetaMask Storybook:
+ * {@link https://metamask.github.io/metamask-storybook/?path=/docs/components-componentlibrary-popover--docs}
+ * If you would like to help with the replacement of the old `Menu` component, please submit a pull request against this GitHub issue:
+ * {@link https://github.com/MetaMask/metamask-extension/issues/20498}
+ */
+
const Menu = ({
anchorElement,
children,
diff --git a/ui/components/ui/menu/menu.stories.js b/ui/components/ui/menu/menu.stories.js
index 7842da277..8065c6626 100644
--- a/ui/components/ui/menu/menu.stories.js
+++ b/ui/components/ui/menu/menu.stories.js
@@ -1,23 +1,43 @@
import React, { useState } from 'react';
import { action } from '@storybook/addon-actions';
-import { IconName } from '../../component-library';
+import PropTypes from 'prop-types';
+import { IconName, BannerAlert } from '../../component-library';
+import { Severity } from '../../../helpers/constants/design-system';
import { Menu, MenuItem } from '.';
export default {
title: 'Components/UI/Menu',
};
+const Deprecated = ({ children }) => (
+ <>
+
+ {children}
+ >
+);
+
+Deprecated.propTypes = {
+ children: PropTypes.node,
+};
+
export const DefaultStory = () => {
return (
-
+
+
+
);
};
@@ -26,7 +46,7 @@ DefaultStory.storyName = 'Default';
export const Anchored = () => {
const [anchorElement, setAnchorElement] = useState(null);
return (
- <>
+
- >
+
);
};