Simple button that scrolls page to the top smoothly. Demo
npm i --save react_top_scroll
on a single component
import TopScroll from "react_top_scroll";
<div>
<TopScroll />
</div>;
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 |
- react.js
- prop-types
- styled-components
- Alex Galkin (@megarohas)