
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
react-progress-bar-timer
Advanced tools
A reusable React progress bar timer component.

Demo • Examples • Tech Stack • Features • Installation • Usage • Styling
Docs tab to see example usage code snippets and documentation for props of ProgressTimer.started prop.started prop or by clicking a progress bar.start(), stop(), and restart() via a ref.started prop.label will be replaced with buttonText if provided.showDuration set to trueonFinish callback fired when timer finishes.colorfontColorfontSizerootRoundedbarRoundedclassesSee Usage and Styling for more info.
yarn add react-progress-bar-timer
npm install react-progress-bar-timer
import ProgressTimer from 'react-progress-bar-timer';
const ExampleComponent = () => (
<ProgressTimer label="Something" duration={60} />
);
Show code to see a snippet| Name | Type | Description |
|---|---|---|
| direction | "left" | "right" | Direction the bar grows toward. |
| variant | "fill" | "empty" | Determines if the bar fills or empties. |
| color | string | Color of the bar; background is same with lower opacity. |
| fontColor | string | Color of the label and timer. |
| duration | number | Duration of the timer in seconds. |
| label | string | Label that describes the timer. |
| buttonText | string | Text displayed when timer is inactive (overrides label). |
| fontSize | string | number | Font size of the label and timer. Use to scale progress bar size. |
| showDuration | boolean | Whether the timer's duration should be shown when inactive. |
| rootRounded | boolean | Whether the progress bar's root element should be rounded. |
| barRounded | boolean | Whether the progress bar should be rounded. |
| started | boolean | null | Whether the timer should be started. (true = start, false = stop, null/undefined = await input). |
| classes | object | Styles applied to the component (override or append to existing styles). |
classes prop to customize the styling.| Name | Type | Description |
|---|---|---|
| root | string | Styles applied to the root element. |
| progressContainer | string | Styles applied to the progress bar container. |
| textContainer | string | Styles applied to the text container. |
| progress | string | Styles applied to the progress bar. |
| label | string | Styles applied to the label. |
| time | string | Styles applied to the time. |
yarn install
npm install
Storybook can be used to demo your code changes in real time with HMR.
yarn storybook
npm storybook
In addition to Storybook, you can use the example app in
example/to test changes.
src/yarn start
npm start
cd example/
yarn install
yarn start
cd example/
npm install
npm start
The example app will now be served locally and use HMR to live update on changes to the source code or example app.
[0.3.2] - 2022-06-11
FAQs
Customizable React progress bar with a labeled timer
The npm package react-progress-bar-timer receives a total of 64 weekly downloads. As such, react-progress-bar-timer popularity was classified as not popular.
We found that react-progress-bar-timer 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
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.