You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You may nest the `<SubMenu>` component within `<Menu>` to create submenus.
42
36
43
37
On smaller viewports where there isn't enough space to render the submenu on either side, it will be rendered under its parent menu item instead.
44
38
45
-
<Canvas>
46
-
<Storyof={MenuStories.SubMenuStory} />
47
-
</Canvas>
39
+
<Canvasof={MenuStories.SubMenuStory} />
48
40
49
41
### Link menu items
50
42
51
43
A `MenuItem` rendered as a link (via `render`) that has no icon is automatically styled like a text link. Link items that include an icon keep the default menu item styling.
52
44
53
-
<Canvas>
54
-
<Storyof={MenuStories.LinkMenuItemStory} />
55
-
</Canvas>
45
+
<Canvasof={MenuStories.LinkMenuItemStory} />
56
46
57
47
### `<ContextMenuTrigger>`
58
48
@@ -61,15 +51,11 @@ for the menu.
61
51
62
52
In the demo below, right click on the Settings button, or click on the more button:
0 commit comments