2.0.0 • Published 2 years ago

react-progressbar-on-scroll v2.0.0

Weekly downloads
22
License
MIT
Repository
github
Last release
2 years ago

react-progressbar-on-scroll

npm bundle size npm peer dependency version Snyk Vulnerabilities for GitHub Repo Licence

Progress bar on scroll React component

live example on codesandbox

Installation

npm install react-progressbar-on-scroll
# or
yarn add react-progressbar-on-scroll

Usage

import React from 'react'
import ProgressBar from 'react-progressbar-on-scroll'

const App = () => (
  <div className="app">
    <ProgressBar />
    <div>Your content...</div>
  </div>
)

export default App

Available props

keytypedefaultdescription
colorstring#1cecolor of progress bar
heightnumber4height of progress bar in px
directionright-leftrighttowards where the progress bar fills
positiontop-bottomtopposition of progress bar in window
gradientbooleanfalseactivate gradient on progress bar
gradientColorstringyellowSecond color of progress bar

Example

<ProgressBar
  color="#fff"
  height={10}
  direction="left"
  position="bottom"
  gradient={true}
  gradientColor="#eee"
/>

Licence

MIT

2.0.0

2 years ago

1.1.1

3 years ago

1.1.0

4 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago