2.0.0 • Published 2 years ago

react-scroll-button v2.0.0

Weekly downloads
48
License
MIT
Repository
github
Last release
2 years ago

react-scroll-button

npm version

Live Demo

Demo

How to Install

npm i react-scroll-button

Usage

import React from 'react';
import ScrollButton from 'react-scroll-button';

const ScrollComponent = () => {
  return (
    <ScrollButton
      behavior="smooth"
      buttonBackgroundColor="red"
      iconType="arrowUp"
      style={{ fontSize: '24px' }}
    />
  );
};

Properties

PropertyDescriptionDefaultValueType
targetIdId of element that you want to go''string
behaviorScroll type. 'auto', 'smooth'autostring
buttonBackgroundColorBackgroundColor of button'green'string
buttonColorColor of icon'white'string
iconTypeIcon type 'up','arrowUp', 'caretUp''up'string
scrollSpeedIt specifies speed of the scroll button.'1s'string
buttonVisibleHeightIt specifies that the scroll button will be visible at what height on the page50number
styleWrite custom css properties{ }object

License MIT

1.2.0

2 years ago

2.0.0

2 years ago

1.1.2

4 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago