Skip to content

Unclear how to use useOverlayTrigger with useMenu #3506

Answered by LFDanLu
bstro asked this question in Q&A
Discussion options

You must be logged in to vote

useMenuTrigger actually handles calling useOverlayTrigger for you so you can just follow the example, specifically the MenuButton portion. Something to note is that the Popover for useMenu is absolutely positioned with respect to the trigger button, so if you want to perform some additional positioning logic via useOverlayPosition you can take a look at its usage in the useOverlayTrigger example.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@bstro
Comment options

Answer selected by bstro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants