Skip to content

patchkit/patchkit-hover-shifter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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>

About

Render different things based on the hoverstate

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors