useHover
Opens the floating element while hovering over the reference element, like CSS :hover
.
Usage
Options
enabled | Enables the hook. |
mouseOnly | Only allow pointers of type mouse to trigger the hover (thus excluding pens and touchscreens). |
delay | Time in ms that will delay the change of the open state. Also accepts an object with open and close properties for finer grained control. |
restMs | Time in ms that the pointer must rest on the reference element before the open state is set to true. |
move | Whether moving the pointer over the floating element will open it, without a regular hover event required. |
handleClose | Callback to handle the closing of the floating element. |
Compare
Compare to Floating UI React.