react-progressbar-on-scroll
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

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

key type default description
color string #1ce color of progress bar
height number 4 height of progress bar in px
direction right-left right towards where the progress bar fills
position top-bottom top position of progress bar in window
gradient boolean false activate gradient on progress bar
gradientColor string yellow Second color of progress bar

Example

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

Licence

MIT

Package Sidebar

Install

npm i react-progressbar-on-scroll

Weekly Downloads

102

Version

2.0.0

License

MIT

Unpacked Size

8.1 kB

Total Files

8

Last publish

Collaborators

  • mleralec