Skip to content

Support for custom anchor position in popover #6068

@divyam234

Description

@divyam234

Provide a general summary of the feature here

React aria popover doesn't support custom anchor position(top and left postion) if given explicitly it only works with trigger elements it should also support random placement which will help in implementing context menus currently there is no way to react aria to achieve this.

🤔 Expected Behavior?

NA

😯 Current Behavior

NA

💁 Possible Solution

Maybe

there should be option here to use anchor position by given by user instead of calculating through trigger element

🔦 Context

Helps in implmenting right-click context menu

💻 Examples

In material-ui popover has props like

anchorPosition:{top:number,left:number}
anchorReference="anchorPosition"

which will place itself wrt to anchor position

🧢 Your Company/Team

No response

🕷 Tracking Issue

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions