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

react-scroll-progress-bar

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-scroll-progress-bar - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

2

package.json
{
"name": "react-scroll-progress-bar",
"version": "1.1.0",
"version": "1.1.1",
"description": "A scroll progress bar component for React",

@@ -5,0 +5,0 @@ "main": "build/index.js",

@@ -58,14 +58,14 @@ # react-scroll-progress-bar

<ProgressBar
height="4"
height="3"
bgcolor="#F43059"
duration="0.2"
duration="1"
/>
```
height -- Set height of progress bar. Default height is `4px`. Pass the number not the unit. Unit is `px`
height -- Set height of progress bar. Default height is `3px`. Pass the number not the unit. Unit is `px`
bgcolor -- Set background-color of progress bar. Default background-color is `#F43059`.
duration -- Set timing-duration for transition property. Default is `0.2s`. Pass the number not the unit. Unit is `s`
duration -- Set timing-duration for transition property. Default is `1s`. Pass the number not the unit. Unit is `s`
----
import PropTypes from "prop-types";
import React, { Component } from "react";
const scrollStyle = (width, height = "4", bgcolor = "#F43059", duration = "0.2") => ({
const scrollStyle = (width, height = "3", bgcolor = "#F43059", duration = "1") => ({
margin: 0,

@@ -6,0 +6,0 @@ padding: 0,

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