Menu triggered by right click #7040
EliasInfnet
started this conversation in
Feature requests
Replies: 2 comments
-
radix ui and others offer this component and I thought it was a great idea. @rtivital |
Beta Was this translation helpful? Give feedback.
0 replies
-
The mantine's popup component is based on floating-ui. You can wrap a new trigger. I do this. https://gist.github.com/minosss/f26fae6170d62df26103a0c589bf6da6 use likes Menu <ContextMenu position='top-end'>
<ContextMenu.Target>
<Center h={100} bg='teal'>
Right Click
</Center>
</ContextMenu.Target>
<ContextMenu.Dropdown>
<ContextMenu.Item>Undo</ContextMenu.Item>
<ContextMenu.Item>Redo</ContextMenu.Item>
</ContextMenu.Dropdown>
</ContextMenu> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'd like to request an enhancement for the Menu component in Mantine to support a right-click (context menu) trigger. This would enable a more intuitive user experience, particularly for applications that require context-specific actions triggered by right-clicks, such as dashboards, file management interfaces, or any setting where additional menu options are relevant to specific content areas.
I know there is an alternative (https://icflorescu.github.io/mantine-contextmenu), but I got to change the whole structure that I've already built just to change the trigger event
Beta Was this translation helpful? Give feedback.
All reactions