Skip to content

react-aria tooltip placement #4875

Closed Answered by LFDanLu
rolanday asked this question in Q&A
Aug 7, 2023 · 4 comments · 2 replies
Discussion options

You must be logged in to vote

You'll have to call useOverlayPosition yourself similarly to how we do it here for RAC tooltip. I don't quite recall why we didn't call useOverlayPosition in the useTooltip hook itself, will have to dig for any design decisions made there.

I'd still encourage that you give the RAC Tooltip a try over the hook based approach if at all possible, and only drop down to the hooks if you find something RAC Tooltip doesn't cover.

Replies: 4 comments 2 replies

Comment options

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

LFDanLu Aug 8, 2023
Collaborator

Answer selected by rolanday
Comment options

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

LFDanLu Aug 8, 2023
Collaborator

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
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