Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
react-time-picker-input
Advanced tools
#React-Time-Picker-INPUT Simple and light time picker for React app.
No moment.js needed
##Installation npm install react-time-picker-input yarn add react-time-picker-input
##Import import TimePicker from 'react-time-picker'
##Demo See Demo
##Usage Here's an example of basic usage:
import React, { useState } from 'react';
import TimePicker from 'react-time-picker-input';
function TimePickerTest() {
const [value, setValue] = useState('10:00');
return (
<div>
<TimePicker
onChange={(newValue)=>setValue(value)}
value={value}
/>
</div>
);
}
##Custom styling
edit Style for : input wrapper
.react-time-input-picker {
// css code here
}
hour input :
.react-time-input-picker #react-time-input-picker__hourInput {
// css code here
}
minute input :
.react-time-input-picker input#react-time-input-picker__minuteInput {
// css code here
}
amPm input :
.react-time-input-picker input#react-time-input-picker__amPm {
// css code here
}
focus style:
.react-time-input-picker input:focus {
// css code here
}
or
.react-time-input-picker input(//inputSelector):focus
{
// css code here
}
##Props |PropName |Type |default| description| |onChange |function |(newValue)=>{} |function that access newValue (new date) param it returns time string if it is valid or if any of parts is empty doesnt fire| |value |String |"- -" |Defines default value of TimePicker. Required format ("HH:mm") ex("22:04") -> always 24Hour format| |hour12Format |boolean |false | make it true to make input 12HourFormat support see on demo example | |allowDelete |String |false |make it true if you want to allow user to delete hour and minute using Backspace|
FAQs
Simple react imte picker input
The npm package react-time-picker-input receives a total of 674 weekly downloads. As such, react-time-picker-input popularity was classified as not popular.
We found that react-time-picker-input 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
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.