Skip to content

How to make react-spectrum <TooltipTrigger> work with pure html components? #4980

Closed Answered by snowystinger
tuananhlai asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@tuananhlai
Comment options

@snowystinger
Comment options

@tuananhlai
Comment options

@snowystinger
Comment options

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