react_top_scroll
v1.1.10
Published
Simple button that scrolls page to the top smoothly
Downloads
4
Maintainers
Readme
React Top Scroll
Simple button that scrolls page to the top smoothly. Demo
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)