react-scroll-progress-bar
Advanced tools
Comparing version 1.1.0 to 1.1.1
{ | ||
"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, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9465