react-horizontal-page-progress

0.0.6 • Public • Published

React Horizontal Page Progress is a small React component. It is designed for showing scrolling page progress on the top of your page.

Using it is simple. Inside project folder, open terminal and type following command:

npm i react-horizontal-page-progress

Then inside screen component where you would like to use it, just import it.

import HorizontalPageProgress from "react-horizontal-page-progress";

Component uses only two props:

height: When using component, you should tell it by passing prop height what it's height should be - '10px' - for example... backgroundColor: Also, pass to component what color should it be.

Example usage:

<HorizontalPageProgress
 height="1px"
 backgroundColor="red"
/>

Click here to go to github repository

Click here to see running example on code sandbox

Package Sidebar

Install

npm i react-horizontal-page-progress

Weekly Downloads

1

Version

0.0.6

License

none

Unpacked Size

26.4 kB

Total Files

8

Last publish

Collaborators

  • lazzaro83