react_top_scroll

1.1.10 • Public • Published

React Top Scroll

Simple button that scrolls page to the top smoothly. Demo react-top-scroll-demo.gif

Getting Started

Installing

npm i --save react_top_scroll

Import and use

on a single component

import TopScroll from "react_top_scroll";

<div>
  <TopScroll />
</div>;

Props

Name Type Default Description
btn_text String Click to the Top Scroll Text that will be displayed after hovering the button
arrow_sign String Arrow Sign
options Object {} Object that will be spreaded in the top div of the component

Built With

  • react.js
  • prop-types
  • styled-components

Authors

  • Alex Galkin (@megarohas)
built in 2021

Package Sidebar

Install

npm i react_top_scroll

Weekly Downloads

1

Version

1.1.10

License

MIT

Unpacked Size

290 kB

Total Files

10

Last publish

Collaborators

  • megarohas