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.2.3 to 2.0.0

dist/react-scroll-progress-bar.es.js

51

package.json
{
"name": "react-scroll-progress-bar",
"version": "1.2.3",
"version": "2.0.0",
"description": "A scroll progress bar component for React",
"main": "build/index.js",
"peerDependencies": {
"react": "^17.0.1"
"type": "module",
"files": [
"dist",
"README.md"
],
"main": "./dist/react-scroll-progress-bar.umd.js",
"module": "./dist/react-scroll-progress-bar.es.js",
"exports": {
".": {
"import": "./dist/react-scroll-progress-bar.es.js",
"require": "./dist/react-scroll-progress-bar.umd.js"
}
},
"scripts": {
"dev": "webpack-dev-server --mode development --open",
"build": "webpack --mode production",
"test": "echo \"No test specified\""
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
},
"repository": {
"type": "git",
"url": "git+https://github.com/ad1tyara0/react-scroll-progress-bar.git"
"url": "git+https://github.com/thisisaditya/react-scroll-progress-bar.git"
},

@@ -24,23 +33,19 @@ "keywords": [

"author": {
"name": "Aditya Rao",
"url": "https://www.adityarao.in/"
"name": "Aditya Rao"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/ad1tyara0/react-scroll-progress-bar/issues"
"url": "https://github.com/thisisaditya/react-scroll-progress-bar/issues"
},
"homepage": "https://github.com/ad1tyara0/react-scroll-progress-bar#readme",
"homepage": "https://github.com/thisisaditya/react-scroll-progress-bar#readme",
"peerDependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@babel/core": "^7.12.16",
"@babel/preset-env": "^7.12.16",
"@babel/preset-react": "^7.12.13",
"webpack": "^5.22.0",
"webpack-cli": "^4.5.0",
"webpack-dev-server": "^3.11.2"
},
"dependencies": {
"prop-types": "^15.7.2",
"react": "^17.0.1",
"react-dom": "^17.0.1"
"@types/react": "^18.2.66",
"@types/react-dom": "^18.2.22",
"@vitejs/plugin-react": "^4.2.1",
"vite": "^5.2.0"
}
}

@@ -17,17 +17,17 @@ # react-scroll-progress-bar

import React from "react";
import ProgressBar from "react-scroll-progress-bar"; //Add this line
import ProgressBar from "react-scroll-progress-bar"; //Add this line to import the component
export default class App extends React.Component {
render() {
return (
<div>
<ProgressBar />
//This is all you need to get the default view working
</div>
);
}
render() {
return (
<div>
<ProgressBar />
//This is all you need to get the default view working
</div>
);
}
}
```
----
---

@@ -41,16 +41,16 @@ ### Custom Progress Bar:

export default class App extends React.Component {
render() {
return (
<div>
<ProgressBar height="6" bgcolor="#000" duration="0.2" />
// Here you can add any react component or jsx
// Add ProgressBar at your top level component or Root component.
// Change height and background-color by setting respective props.
</div>
);
}
render() {
return (
<div>
<ProgressBar height="6" bgcolor="#000" duration="0.2" />
// Here you can add any react component or jsx // Add ProgressBar at your
top level component or Root component. // Change height and background-color
by setting respective props.
</div>
);
}
}
```
----
---

@@ -60,15 +60,13 @@ ### Configuration:

```javascript
<ProgressBar
height="3"
bgcolor="#F43059"
duration="1"
/>
<ProgressBar height="8" bgcolor="#F43059" duration="1" />
```
**height** -- Set height of progress bar. Default height is `3px`. Pass the number not the unit. Unit is `px`
**height** - Set height of progress bar. Default height is `8px`. Pass the number not the unit. Unit is `px`
**bgcolor** -- Set background-color of progress bar. Default background-color is `#F43059`.
**bgcolor** - Set background-color of progress bar. Default background-color is `#F43059`.
**duration** -- Set timing-duration for transition property. Default is `1s`. 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`(seconds)
----
> NOTE: To remove transition animation on progress bar, simply pass `duration="0"` to ProgressBar component.
---
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