Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-progressbar-on-scroll

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

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
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
44
decreased by-29.03%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc