vdux-hover
Hover component for vdux
Last updated 5 years ago by ashaffer88 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install vdux-hover 
SYNC missed versions from official npm registry.

hover

js-standard-style

Hover component for vdux

Installation

$ npm install vdux-hover

Usage

<Hover /> accepts both normal children and 'function children'. If you pass a function child to hover, it will call that child with a bool indicating whether or not the mouse is currently over your element. Example:

function render () {
  return (
    <Hover>
      <MenuItem />
      {
        hover => hover && <Tooltip message='Use MenuItem to menu your items!!' />}
      }
    </Hover>
  )
}

That's all there is to it.

License

MIT

Current Tags

  • 1.0.0                                ...           latest (5 years ago)

1 Versions

  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (11)

Copyright 2014 - 2016 © taobao.org |