Open dhanashriz opened 1 year ago
What happens if you use the UnstyledMenuSimple
as your component
? Is it possible that MUI Menu
is not meant to be used on its own without any extra props or children?
Hey @shilman Thanks for the quick response! If I use UnstyledMenuSimple
as a component
, I can see the Menu loading in the same way as the code sandbox output. MUI doesn't need any keys to be added. But the storybook throws an error for required keys
Describe the bug
Integrating Mui-base Menu in the storybook throws an error:![Screenshot 2023-07-12 at 3 55 38 PM](https://github.com/storybookjs/storybook/assets/110368171/b15e0ab6-8a64-48bc-9a35-f3470e444679)
The compound component's child doesn't have a key. You need to provide a missingKeyGenerator to generate it.
To Reproduce
const meta: Meta = {
title: 'Components/Menu',
component: Menu,
tags: ['autodocs'],
}
export default meta; type Story = StoryObj;
export const Primary: Story = { args: { }, };`
System
Additional context
No response