Skip to content

Can we combine useTooltipTrigger with useOverlay? #3468

Discussion options

You must be logged in to vote

The answer to that is yes. And better yet, we do it in our Spectrum components. See https://react-spectrum.adobe.com/react-spectrum/Tooltip.html, it's rendered to the body. See our source code for how we did it, should be a pretty quick read https://github.com/adobe/react-spectrum/blob/main/packages/%40react-spectrum/tooltip/src/TooltipTrigger.tsx

Let us know if you run into any difficulties.

Replies: 1 comment 1 reply

Comment options

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

Answer selected by brandonpittman
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