Security News
Research
Supply Chain Attack on Rspack npm Packages Injects Cryptojacking Malware
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
react-sweet-progress
Advanced tools
A way to quickly add a react progress bar to your app 🌈
Install via npm
npm i -S react-sweet-progress
Import Progress
and progress bar styles
import { Progress } from 'react-sweet-progress';
import "react-sweet-progress/lib/style.css";
Enjoy
<Progress percent={88} status="success" />
Basic steps to customize React progress bar.
Percent
cant set the completion percentage of progress bar.
<Progress />
<Progress
percent={69}
/>
You can use 3 status types: active
, error
, success
. By default status
equal to success
when percent
is 100
.
<Progress
percent={88}
status="success"
/>
<Progress
percent={43}
status="error"
/>
With theme
param you can customize icons and styles of the progress bar.
<Progress
theme={{
success: {
symbol: '🏄',
color: 'rgb(223, 105, 180)'
},
active: {
symbol: '😀',
color: '#fbc630'
},
default: {
symbol: '😱',
color: '#fbc630'
}
}}
/>
If you don't pass custom status
then it will use the default color theme.
<Progress
theme={{
success: {
symbol: '🏄',
color: 'rgb(223, 105, 180)'
}
}}
/>
Also you can use the status
param.
<Progress
percent={100}
status="error"
theme={{
error: {
symbol: '🤔',
color: '#fbc630'
}
}}
/>
Property | Description | Type | Default |
---|---|---|---|
percent | set the completion percentage | number | 0 |
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 | - |
style | set the custom style of the react progress bar | object | - |
className | set the custom class of the react progress bar | object | - |
symbolClassName | set the symbol custom class | object | - |
React Sweet Porgress
designed to support the latest web browsers. We support the current versions of Chrome, Firefox, Safari, Microsoft Edge and Internet Explorer 11. Also support the latest mobile browsers.
git clone https://github.com/abraztsov/react-sweet-progress.git
cd react-sweet-progress
npm start
localhost:8080
Have an idea for a package or a feature you'd love to see in ReactSimpleFlexGrid? Search for existing GitHub issues and join the conversation or create new!
This component based on ant design progress. Huge thanks them for a such an awesome work.
1.0.0 first release
FAQs
React Sweet Progress ================= [![npm version](https://badge.fury.io/js/react-sweet-progress.svg)](https://badge.fury.io/js/react-sweet-progress)
The npm package react-sweet-progress receives a total of 12,255 weekly downloads. As such, react-sweet-progress popularity was classified as popular.
We found that react-sweet-progress demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.
Security News
Sonar’s acquisition of Tidelift highlights a growing industry shift toward sustainable open source funding, addressing maintainer burnout and critical software dependencies.