Can we combine useTooltipTrigger
with useOverlay
?
#3468
-
I need a tooltip that renders in a |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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. |
Beta Was this translation helpful? Give feedback.
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.