Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-samay

Package Overview
Dependencies
Maintainers
1
Versions
15
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

  • 2.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
increased by200%
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 ReactDOM from 'react-dom';

// import css file
import 'react-samay/index.css';

ReactDOM.render(
  <TimePicker
    value={new Date()}
    onChange={(date) => {
      console.log(date);
    }}
  />,
  <div id="app" />,
);

You can find more 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

FAQs

Package last updated on 05 Jun 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc