Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
react-component-countdown-timer
Advanced tools
This is a simple countdown timer react component.
The demo app source code lives inside the src/docs
folder.
npm
npm install react-component-countdown-timer --save
⚠️ Also install react-component-countdown-timer for css
@import "~react-component-countdown-timer/lib/styles.css";
import React from "react";
import CountdownTimer from "react-component-countdown-timer";
class SimpleCountdownTimer extends React.Component {
render() {
var settings = {
count: 5432,
border: true,
showTitle: true,
noPoints: true,
};
return (
<CountdownTimer {...settings} />
);
}
}
OR
import React from "react";
import CountdownTimer from "react-component-countdown-timer";
class SimpleCountdownTimer extends React.Component {
render() {
return (
<CountdownTimer count={5432} border showTitle noPoints />
);
}
}
Name | Type | Default | Description |
---|---|---|---|
className | string | '' | Additional CSS class for the root DOM node |
count | number | 0 | The count value of the timer base on second |
border | boolean | false | If the value is true , it means a react-component-countdown-timer has a border |
showTitle | boolean | false | If the value is true , it means a react-component-countdown-timer has a title top of each section |
direction | right or left | left | Value to be added or subtracted on each step the slider makes. Must be greater than zero, and max - min should be evenly divisible by the step value. When marks is not an empty object, step can be set to null , to make marks as steps. |
noPoints | boolean | false | If vertical is true , the react-component-countdown-timer will be : between each section . |
color | string | #000 | |
backgroundColor | string | #fff | |
responsive | boolean | false | If true , with is responsive. |
size | number | 18 | count number font size |
labelSize | number | 12 | if showTitle is true this set label font size |
responsive | boolean | false | If true , with is responsive. |
hideDay | boolean | false | If true , hide day. |
hideHours | boolean | false | If true , hide hours . |
dayTitle | string | Day | |
hourTitle | string | Hour | |
minuteTitle | string | Min | |
secondTitle | string | Sec | |
onEnd | Function | () => {} |
react-component-countdown-timer
is released under the MIT license.
FAQs
Count down timer component for react
We found that react-component-countdown-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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.