patchkit-hover-shifter

1.0.0 • Public • Published

HoverShifter

Renders the first child element if the mouse is not over the component.

Renders the second child element if the mouse is hovering.

import HoverShifter from 'patchkit-hover-shifter'
 
<HoverShifter>
  <div>Unhovered</div>
  <div>Hovered</div>
</HoverShifter>

Readme

Keywords

Package Sidebar

Install

npm i patchkit-hover-shifter

Weekly Downloads

0

Version

1.0.0

License

GPL-3.0

Last publish

Collaborators

  • pfraze