
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
preact-progress
Advanced tools
Simple and lightweight (~590 bytes gzip) progress bar component for Preact
Simple and lightweight (~590 bytes gzip) progress bar component; for :atom_symbol: Preact
$ npm install --save preact-progress
:exclamation: Pro Tip: Use Yarn to install dependencies 3x faster than NPM!
<script src="https://unpkg.com/preact-progress@1.0.0/dist/preact-progress.min.js"></script>
Provide a value; everything else is optional.
import { h } from 'preact';
import Progress from 'preact-progress';
onChange = (ctx, val) => console.log(`${val}% complete`);
onComplete = ctx => {ctx.base.style.opacity = 0};
<Progress
id="loader" className="loader"
value={ 16.3 } height="3px" color="#6cc644"
onChange={ onChange }
onComplete={ onComplete }
/>
Type: Number
Default: 0
The current progress; between 0 and 100. Mapped to a style:width percentage.
Type: Function
The callback function when progress bar has reached 100%. Receives the current Progress component as its only argument.
Type: Function
The callback function whenever the progress value updates. Receives the current Progress component as its first argument & the current value as its second argument.
Type: Function
The callback function when progress bar has reached 100%. Receives the current Progress component as its only argument.
Type: String
Default: 4px
The height of the animated progress bar.
Type: String
Default: black
The color of the animated progress bar.
Type: String
Default: none
The id attribute to pass down.
Type: String
Default: none
The className attribute to pass down. Added to the wrapper element.
MIT © Luke Edwards
FAQs
Simple and lightweight (~590 bytes gzip) progress bar component for Preact
We found that preact-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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.