V3
Redesign the API usePopover
to a hook with much simpler usage which has easier mindset of usage
import { usePopover } from 'react-overlay-trigger'
const App = () => {
const { popover, triggerProps } = usePopover({
placement: 'top',
hoverToggle: true,
})
return (
<div>
{popover}
<button {...triggerProps}>hover me</button>
</div>
)
}
Checkout the readme and website for more details