Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

go-to-button

1.0.2 • Public • Published

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 buttonfalse 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

Install

npm i go-to-button

DownloadsWeekly Downloads

1

Version

1.0.2

License

ISC

Unpacked Size

3.81 kB

Total Files

3

Last publish

Collaborators

  • avatar