1.2.6 • Published 4 years ago

@time-with/time-picker v1.2.6

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

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

PropNameTypeDescription
stepintThe step between time options
minTimedateThe min time
maxTimedateThe max time
valuedateThe input value
formatstringHow to format the time. Internally it uses the format() of date-fns. Format options here.
onChangefuncOn change handler

License

MIT

1.2.6

4 years ago

1.2.5

4 years ago

1.2.4

4 years ago

1.2.0

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.1.0

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago