Support for nested Menus #669
Replies: 14 comments 7 replies
-
Hey! Thank you for your suggestion! This is something we want to support, but I can't give you an ETA on this. |
Beta Was this translation helpful? Give feedback.
-
I think this would be rather easy to implement manually if you just provided a way to open a menu programmatically. As of now it can only be opened by clicking on Menu.Button. Just provide an |
Beta Was this translation helpful? Give feedback.
-
any updates on this ? |
Beta Was this translation helpful? Give feedback.
-
Is there any way to do this? |
Beta Was this translation helpful? Give feedback.
-
Any update on this? I'm trying to implement a sidebar multi level menu? Are there any other alternatives? |
Beta Was this translation helpful? Give feedback.
-
I'm also looking for this. |
Beta Was this translation helpful? Give feedback.
-
I think this is now possible since 1.7.4. In this version, a close method has been exposed on the Menu which can be used to manually close the menu. I put a quick example together in a stackblitz: https://stackblitz.com/edit/react-ts-iuxwoh It's pretty crude, but you should get the idea. |
Beta Was this translation helpful? Give feedback.
-
I put a quick example together in a stackblitz based on @vixducis's example: https://stackblitz.com/edit/react-ts-2gynxv?file=App.tsx |
Beta Was this translation helpful? Give feedback.
-
Nesting a |
Beta Was this translation helpful? Give feedback.
-
this feature would be awesome improvement for menu functionality! |
Beta Was this translation helpful? Give feedback.
-
Come on guys, Nested Menus is a must have if you seriously want to work with menus in real world applications. Provided solution here is not nested! It's a hack. It needs to be nested in the HTML-Structure as well. Also keep acessibility in mind like aria-expanded on parent, and keyboard navigation should work... |
Beta Was this translation helpful? Give feedback.
-
I would love have one :D |
Beta Was this translation helpful? Give feedback.
-
Hi,
This is somewhat related to #152
Are there any plans for supporting nested menus? My current use case is that when you select a menu item I need to re-render the list of items in the menu and show them without closing it. This is pretty straight forward but the issue is the menu closes on the first click.
I'm aware I can handle the open state manually but then I need to deal with handling outside clicks, etc. which is already managed by Headless UI.
Beta Was this translation helpful? Give feedback.
All reactions