1.0.6 • Published 3 years ago

react-image-button v1.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

React Image Button

Add buttons inside an image with react-image-button library.

react-image-button

Using with zero parameters

  import ImageButton from 'react-image-button';

  const App = () => {
    return (
      <ImageButton img="image-location" >
        <button primary> Image-button </button>
      </ImageButton>
    )
  }
ParametersDefault valueis RequiredPossible values
imgnullTruelocation\image component
buttonnullTrueReact component
zoomOnHover1False1, 0, -1
animationDuration1FalseNumber
buttonPositioncenterFalse"top", "bottom", "center"
onMouseEnternullFalsecallback function
onMouseLeavenullFalsecallback function
onClicknullFalsecallback function
imageBackgroundColor#FFFFFFFalsestring color code/name
containerStyle{}FalseStyle Object
alwaysShowButtonFalseFalseBoolean
buttonsContainerStyle{}FalseStyle object

if you are interested in contributing to this repository, read contributing.md

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago