react-timepicker-clock

0.4.4 • Public • Published

react-timepicker-clock

A react timepicker clock also compatible with next.js

Demo

https://react-timepicker-clock.vercel.app

Installation

  npm install react-timepicker-clock --save

How to use?

import TimePickerClock from 'react-timepicker-clock';

function App() {
  return (
      <TimePickerClock
            onSet={(hour,minute,noon,full_val)=>{
                // do something
            }}
            onCancel={()=>{
                // do something
            }}
       />
  )
}

Props

Prop Type Example Required
onSet function onSet={(hour, minute, noon, full_val)=> // do something} true
onCancel function onCancel={()=> // do something} true

Acknowledgements

Contributing

Contributions are always welcome!

Package Sidebar

Install

npm i react-timepicker-clock

Weekly Downloads

3

Version

0.4.4

License

ISC

Unpacked Size

10.6 kB

Total Files

4

Last publish

Collaborators

  • snmks55