react-hover-observer
react-hover-observer copied to clipboard
feature request: Option to use <span> instead of <div>
I'm using this to style hyperlinks and the <div>
wrapper messes up the flow of the page content. I can work around it for now using className
and an external stylesheet to make the div display: inline
but it would be nice to simply have the option to use <span>
as the observing DOM element.
It could also be useful to allow <tbody>
as the observing element. This would permit the attachment of hover behaviors to table rows. I suppose, more generally, it would be nice to be able to provide, or to specify, the wrapper.
Update: Using an experimental fork, I can confirm that <tbody>
works like a charm.