1.0.2 • Published 4 years ago

go-to-button v1.0.2

Weekly downloads
3
License
ISC
Repository
-
Last release
4 years ago

Go To Button

Simple go to button, with ref from react and custom styles

Installation

npm i go-to-button

Usage

import GoToButton from 'go-to-button'

const terminateRef = useRef(null);
   <GoToButton
        isVisible //required to see the button, false if you dont want it
        textColor="red"
        backgroundColor="white"
        icon="fa fa-window-close" //icon class from fontawesome
        iconColor="red"
        buttonText="Terminate"
        borderColor="red"
        width="120px"
        height="50px"
        buttonRef={terminateRef} //put your ref here
      />

<div ref={terminateRef} /> // the div you want to go

License

MIT