How to control the Popover component by hovering? #4705
-
I want to trigger the rendering of the Popover component by hovering, I tried it, but I don't know how to pass the state |
Beta Was this translation helpful? Give feedback.
Answered by
snowystinger
Jun 25, 2023
Replies: 1 comment 4 replies
-
You should be able to control it via the controlled state |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
birchrust
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You should be able to control it via the controlled state
isOpen
. https://react-spectrum.adobe.com/react-aria/Dialog.html#propsBe mindful that hover alone isn't an accessible interaction. Make sure there is a way for keyboard, touch, and screen readers to also access any important content or actions.