hoverable-react

1.0.0 • Public • Published

Hoverable react component

On hover component that uses render props to show correct component

Usage

import Hoverable from 'hoverable-react'

<Hoverable 
    render={hovered => 
        hovered ? <div>Im hovered</div> : <div>Im not hovered</div>
    }    
/>
Props:
    className - applied to wrapper div
    styles - applied to wrapper div

Authors

License

Public

Readme

Keywords

Package Sidebar

Install

npm i hoverable-react

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

5.4 kB

Total Files

4

Last publish

Collaborators

  • designalchemy