🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

react-progressbar-on-scroll

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-progressbar-on-scroll

Progress bar on scroll, React component

2.0.0
latest
Version published
Weekly downloads
30
-31.82%
Maintainers
1
Weekly downloads
 
Created

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

FAQs

Package last updated on 31 May 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts