Socket
Socket
Sign inDemoInstall

react-progressbar-on-scroll

Package Overview
Dependencies
3
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-progressbar-on-scroll

Progress bar on scroll, React component


Version published
Weekly downloads
87
increased by31.82%
Maintainers
1
Install size
7.91 kB
Created
Weekly downloads
 

Changelog

Source

2.0.0

Readme

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

Last updated on 31 May 2022

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc