Overlay positioning based on an event or a point #7267
Closed
alirezamirian
started this conversation in
General
Replies: 1 comment
-
|
This is possible as of our latest release, which adds a getTargetRect prop to Popover. Here's an example that uses it: https://react-aria.adobe.com/Autocomplete#inline-completions |
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
Uh oh!
There was an error while loading. Please reload this page.
-
useOverlayPositioncan be used to position an overlay based on another element (targetRef). I'm curious if there has been any internal discussion or plan for supporting positioning based on a pointer event or the coordinates of a given point.Use case being context menus.
Beta Was this translation helpful? Give feedback.
All reactions