How to make react-spectrum <TooltipTrigger>
work with pure html components?
#4980
-
Hi, I have a small question regarding react-spectrum's I have checked the code and it seems like Thank you for your assistance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
You can make any button work with TooltipTrigger if you use the hook for buttons https://react-spectrum.adobe.com/react-aria/useButton.html. You could also use the React Aria Component, https://react-spectrum.adobe.com/react-aria/Button.html which gives you full control over the rendering and takes care of calling the useButton hook for you. |
Beta Was this translation helpful? Give feedback.
You can make any button work with TooltipTrigger if you use the hook for buttons https://react-spectrum.adobe.com/react-aria/useButton.html. You could also use the React Aria Component, https://react-spectrum.adobe.com/react-aria/Button.html which gives you full control over the rendering and takes care of calling the useButton hook for you.