Skip to content

TimeWith/time-picker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Timewith Time Picker

Simple React TimePicker

Install

With npm do:

$ npm install @time-with/time-picker
or
$ yarn add @time-with/time-picker

Usage

import TimePicker from '@time-with/time-picker'

<TimePicker
  step={15}
  minTime={new Date()}
  maxTime={new Date()}
  value={new Date()}
  format="HH:mm"
  onChange={this.handleTimeChange}
/>

Parameters

PropName Type Description
step int The step between time options
minTime date The min time
maxTime date The max time
value date The input value
format string How to format the time. Internally it uses the format() of date-fns. Format options here.
onChange func On change handler

License

MIT

About

Simple React TimePicker

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •