
Product
Socket Now Protects the Chrome Extension Ecosystem
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
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.1
FAQs
Time picker for React.js
The npm package react-samay receives a total of 1 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 0 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.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
Product
Add secure dependency scanning to Claude Desktop with Socket MCP, a one-click extension that keeps your coding conversations safe from malicious packages.
Product
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.