Nested Menus #2307
Replies: 7 comments 1 reply
-
Hi @Jinnified, thanks for kind words! Nested menus are in our backlog, I cannot say though when they are going to be released. |
Beta Was this translation helpful? Give feedback.
-
Really needed component! |
Beta Was this translation helpful? Give feedback.
-
It currently works with
|
Beta Was this translation helpful? Give feedback.
-
I would love to see this feature in an upcoming release |
Beta Was this translation helpful? Give feedback.
-
Hi, is there any update? |
Beta Was this translation helpful? Give feedback.
-
You can refer to your code as follows important: Nested popovers require children rendering without Portal. Usually, you should disable portal with props of the component that renders popover content, for example, Select has comboboxProps={{ withinPortal: false }} prop. Check documentation of the component that you are using to render popover content to find out how to disable the portal. If the portal is not disabled, outside click will close all popovers. Example: {/* parent */}
<Popover width={300} position="bottom" withArrow shadow="md">
<Popover.Target>
<Button>Toggle popover</Button>
</Popover.Target>
<Popover.Dropdown bg="var(--mantine-color-body)">
{/* children */}
<Popover width={300} position="bottom" withArrow shadow="md" withinPortal={false}>
<Popover.Target>
<Button>Toggle popover</Button>
</Popover.Target>
<Popover.Dropdown bg="var(--mantine-color-body)">
<Select
label="Select within Popover"
placeholder="Select within Popover"
comboboxProps={{ withinPortal: false }}
data={["React", "Angular", "Svelte", "Vue"]}
/>
<Select
label="Select within Popover"
placeholder="Select within Popover"
comboboxProps={{ withinPortal: false }}
data={["React", "Angular", "Svelte", "Vue"]}
/>
<Select
label="Select within Popover"
placeholder="Select within Popover"
comboboxProps={{ withinPortal: false }}
data={["React", "Angular", "Svelte", "Vue"]}
/>
</Popover.Dropdown>
</Popover>
<Select
label="Select within Popover"
placeholder="Select within Popover"
comboboxProps={{ withinPortal: false }}
data={["React", "Angular", "Svelte", "Vue"]}
/>
<Select
label="Select within Popover"
placeholder="Select within Popover"
comboboxProps={{ withinPortal: false }}
data={["React", "Angular", "Svelte", "Vue"]}
/>
<Select
label="Select within Popover"
placeholder="Select within Popover"
comboboxProps={{ withinPortal: false }}
data={["React", "Angular", "Svelte", "Vue"]}
/>
</Popover.Dropdown>
</Popover> |
Beta Was this translation helpful? Give feedback.
-
@rtivital can we please get this soon. This is a blocker for migrating one of ours apps to Mantine because we use nested menus a lot. we're currently using the radix implementation |
Beta Was this translation helpful? Give feedback.
-
hi folks, Mantine is awesome and it's just a breeze to use, loving it so far
just wondering, if you guys ever plan to make the Menu component nestable, so that multi-level menu nav can be a thing?
cheers
Beta Was this translation helpful? Give feedback.
All reactions