2.4.1 • Published 5 years ago

react-content-progress-bar v2.4.1

Weekly downloads
31
License
MIT
Repository
github
Last release
5 years ago

React Content Progress Bar

Build Status dependencies Status devDependencies Status License: MIT

Adaptative Progress Bar for all usage !

Simple to use and to implement for your blog or website

Usage

Import the ProgressBar:

import ProgressBar from "react-content-progress-bar";

You have seven parameters available:

  • backgroundColor: Color of the progress bar background
    • default: transparent
  • callback: Function to be called when the progress bar reaches the end
    • default: () => {}
  • color: Color of the progress bar
    • default: white
  • ref: The Ref of the content you want to cover (ie. blog post, article..). (See https://reactjs.org/docs/refs-and-the-dom.html)
    • REQUIRED
  • radius (previously borderRadius): Radius of the right border side (top-right and bottom-right) (in px)
    • default: 0
  • style: Style of the progress bar (solid, dashed, dotted..)
    • default: solid
  • thickness (previously width): Thickness of the progress bar (in px)
    • default: 1

Use it like this:

<ProgressBar
  backgroundColor="rgba(125, 125, 125, 0.8)"
  callback={() => console.log("Reached the end of my document")}
  color="#fff"
  radius={2}
  ref={this.myRef}
  style="solid"
  thickness={3}
/>

License

MIT © Lorris Saint-Genez

2.4.1

5 years ago

2.4.0

5 years ago

2.3.3

5 years ago

2.3.2

5 years ago

2.3.1

5 years ago

2.3.0

5 years ago

2.2.3

5 years ago

2.2.2

5 years ago

2.2.1

5 years ago

2.2.0

5 years ago

2.1.0

5 years ago

2.0.1

5 years ago

1.4.5

5 years ago

1.4.2

5 years ago

1.4.1

5 years ago

1.4.0

5 years ago

1.3.0

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago