-
I'm trying to build a menu with according to the docs, but I'm feeling a little confused. The docs for useOverlayTrigger state:
However, upon following the link to Wondering if there is something I'm missing in the docs? Or an example somewhere? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
useMenuTrigger
actually handles callinguseOverlayTrigger
for you so you can just follow the example, specifically the MenuButton portion. Something to note is that the Popover foruseMenu
is absolutely positioned with respect to the trigger button, so if you want to perform some additional positioning logic viauseOverlayPosition
you can take a look at its usage in the useOverlayTrigger example.