Security News
The Push to Ban Ransom Payments Is Gaining Momentum
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
react-spinner-timer
Advanced tools
Readme
The React Spinner Timer for React.
Circular countdown timer with progressive animation.
To install React Spinner Timer you can run:
yarn add react-spinner-timer
or
npm install react-spinner-timer
To use:
import React from "react";
import ReactSpinnerTimer from "react-spinner-timer";
function App() {
const handleChange = (lap) => {
if (lap.isFinish) console.log("Finished!!");
else console.log("Running!! Lap:", lap.actualLap);
};
return (
<ReactSpinnerTimer
timeInSeconds={60}
totalLaps={60}
isRefresh={false}
onLapInteraction={handleChange}
/>
);
}
export default App;
See another example at Code Sandbox
Prop | Type | Description |
---|---|---|
timeInSeconds | Number | Component lap time |
totalLaps | Number | Number of laps |
onLapInteraction | Function | When you complete a lap, what to do? |
isRefresh | Boolean | Refresh the lap (Optional) |
Prop | Type | Description |
---|---|---|
actualLap | Number | Lap actual |
totalLaps | Number | Number of total laps |
isFinish | Boolean | Interactions is finished |
timeInSeconds | Number | Time of lap |
Thanks for downloading, use wisely!
FAQs
React SVG Spinner for update actions
We found that react-spinner-timer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
Application Security
New SEC disclosure rules aim to enforce timely cyber incident reporting, but fear of job loss and inadequate resources lead to significant underreporting.
Security News
The Python Software Foundation has secured a 5-year sponsorship from Fastly that supports PSF's activities and events, most notably the security and reliability of the Python Package Index (PyPI).