ifndefdeadmau5 / react-floating-button-menu

A customizable floating action button menu that follows material design
https://ifndefdeadmau5.github.io/react-floating-button-menu/
46 stars 15 forks source link

onMouseOver in FloatingMenu #33

Closed hungnguyen1995 closed 4 years ago

hungnguyen1995 commented 4 years ago

how to detect event hover in button

ifndefdeadmau5 commented 4 years ago

Hi @hungnguyen1995, You can do it as you would do it in normal component :)

  <MainButton
              iconResting={<MdAdd style={{ fontSize: 20 }} nativeColor="white" />}
              iconActive={<MdClose style={{ fontSize: 20 }} nativeColor="white" />}
              background="linear-gradient(45deg, #FE6B8B 30%, #FF8E53 90%)"
              onMouseOver={() => {
                console.log('Mouse Over')
              }}
      />
hungnguyen1995 commented 4 years ago

sr! it my bug ^^