🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

react-samay

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-samay

Time picker for React.js

4.0.0
latest
Source
npm
Version published
Weekly downloads
9
-57.14%
Maintainers
1
Weekly downloads
 
Created
Source

React Samay

npm Node.js CI

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.

Features

  • Uses native date object
  • Dropdown based hours, minutes, seconds & meridiem selection.
  • Keyboard navigation
  • Similar API as rc-time-picker
  • Written with Typescript, with built-in typings

Install

npm i --save react-samay

Usage

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);
    }}
  />
);

Storybook Examples

You can find storybook examples here.

API

TimePicker

NameTypeDefault
prefixClsString'react-samay'
disabledBooleanfalse
openBooleanfalse
defaultValueDatenull
defaultOpenValueDatenew Date()
valueDatenull
placeholderString''
classNameString''
inputClassNameString''
nameString-
idString''
showHourBooleantrue
showMinuteBooleantrue
showSecondBooleantrue
formatString-
disabledHoursFunction-
disabledMinutesFunction-
disabledSecondsFunction-
use12HoursBooleanfalse
hideDisabledOptionsBooleanfalse
onChangeFunctionnull
onAmPmChangeFunctionnull
onOpenFunction({ open })
onCloseFunction({ open })
hourStepNumber1
minuteStepNumber1
secondStepNumber1

Keywords

time-picker

FAQs

Package last updated on 26 May 2025

Did you know?

Socket

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.

Install

Related posts