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

react-sweet-progress

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-sweet-progress - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

2

package.json
{
"name": "react-sweet-progress",
"version": "1.1.0",
"version": "1.1.1",
"description": "",

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

@@ -7,3 +7,3 @@ React Sweet Progress

![Imgur](http://i.imgur.com/ZYirw74.gif)
![Imgur](http://i.imgur.com/Lhn7hqC.gif)

@@ -13,6 +13,10 @@ Basic Usage

1. Install via `npm`
1. Install via npm and yarn
```
npm i -S react-sweet-progress
// or
yarn add react-sweet-progress
```

@@ -113,2 +117,33 @@ 2. Import `Progress` and progress bar styles

If you don't specify the theme `trail color`, then the deafult value of `#efefef` will be used.
```
<Progress
theme={
{
error: {
symbol: this.state.percent + '%',
trailColor: 'pink',
color: 'red'
},
default: {
symbol: this.state.percent + '%',
trailColor: 'lightblue',
color: 'blue'
},
active: {
symbol: this.state.percent + '%',
trailColor: 'yellow',
color: 'orange'
},
success: {
symbol: this.state.percent + '%',
trailColor: 'lime',
color: 'green'
}
}
}
/>
```
![Imgur](https://i.imgur.com/QUu7ygb.gif)
If you don't pass custom `status` then it will use the default color theme.

@@ -148,3 +183,2 @@

### Circle width 😲

@@ -194,3 +228,3 @@

| status | set the status of the progress, options: `success`, `error`, `active` | string | - |
| theme | set the custom styles of the progress, options: `[status]: { color: [string], symbol: '[any]'}` | object | - |
| theme | set the custom styles of the progress, options: `[status]: { color: [string], trailColor: [string], symbol: '[any]'}` | object | - |
| style | set the custom style of the react progress bar | object | - |

@@ -233,4 +267,6 @@ | type | set the type of the progress bar, options: `circle` | string | - |

1.1.1 Trail color can now be specified by a progress theme.
1.1.0 Added `Circle` progress
1.0.0 First release
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