
Security News
npm ‘is’ Package Hijacked in Expanding Supply Chain Attack
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
react-samay
Advanced tools
Time picker for React.js
This is a fork from rc-time-picker, which is no longer maintained. I have also mixed styling support from time-picker-io.
rc-time-picker
npm i --save react-samay
import { TimePicker } from 'react-samay';
import { createRoot } from 'react-dom/client';
// import css file
import 'react-samay/index.css';
const container = document.getElementById('app');
const root = createRoot(container);
root.render(
<TimePicker
value={new Date()}
onChange={(date) => {
console.log(date);
}}
/>
);
You can find storybook examples here.
Name | Type | Default |
---|---|---|
prefixCls | String | 'react-samay' |
disabled | Boolean | false |
open | Boolean | false |
defaultValue | Date | null |
defaultOpenValue | Date | new Date() |
value | Date | null |
placeholder | String | '' |
className | String | '' |
inputClassName | String | '' |
name | String | - |
id | String | '' |
showHour | Boolean | true |
showMinute | Boolean | true |
showSecond | Boolean | true |
format | String | - |
disabledHours | Function | - |
disabledMinutes | Function | - |
disabledSeconds | Function | - |
use12Hours | Boolean | false |
hideDisabledOptions | Boolean | false |
onChange | Function | null |
onAmPmChange | Function | null |
onOpen | Function({ open }) | |
onClose | Function({ open }) | |
hourStep | Number | 1 |
minuteStep | Number | 1 |
secondStep | Number | 1 |
4.0.0
react>=18
FAQs
Time picker for React.js
The npm package react-samay receives a total of 2 weekly downloads. As such, react-samay popularity was classified as not popular.
We found that react-samay demonstrated a healthy version release cadence and project activity because the last version was released less than 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
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
Security News
A critical flaw in the popular npm form-data package could allow HTTP parameter pollution, affecting millions of projects until patched versions are adopted.
Security News
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.