Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
react-gradient-timepicker
Advanced tools
A beautiful gradients timepicker component built in and for awesome React.
https://github.com/rahuldhawani/react-timepicker
npm install react-gradient-timepicker --save
import TimePicker from 'react-gradient-timepicker'; // or
var TimePicker = require('react-gradient-timepicker');
<TimePicker
time="01:00"
theme="Bourbon"
className="timepicker"
placeholder="Start Time"
onSet={(val) => {
alert('val:' + val.format12);
}}
/>
prop | type | description | optional |
---|---|---|---|
#time | string | 24 hours format time to initial time | Yes. Takes current time if not provided |
theme | string | Gradient name from uigradients.com. header, buttons, hand colors will take theme color. If you want to change buttons and hand color, provide color1 prop. Note: Header color cant be changed if theme is provided | Yes. If not provided it takes color1. if color1 is not provided it takes default color ie #F26B83. |
color1 | string | color1 is primary color ie. header, buttons, hand will take this color. If you want to header color, provide headerColor prop | Yes. Takes default color for header, buttons, hand ie. #F26B83 |
headerColor | string | Header color for timepicker. Does not work if theme prop is provided. | Yes. If not provided it takes color1. if color1 is not provided it takes default color ie #F26B83. |
placeholder | string | Placeholder string for timepicker input | No |
className | string | Class name for timepicker input | Yes |
onSet | function | The funciton to call when Set button is clicked | No |
onSet function is called everytime SET button is clicked with parameter
{
format12: '01:00 AM' // 12 hour format,
format24: '13:00' // 24 hour format
}
FAQs
React Timepicker
The npm package react-gradient-timepicker receives a total of 246 weekly downloads. As such, react-gradient-timepicker popularity was classified as not popular.
We found that react-gradient-timepicker 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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.