0.1.8 • Published 5 years ago

react-utc-datepicker v0.1.8

Weekly downloads
15
License
MIT
Repository
github
Last release
5 years ago

React UTC Datepicker

A simple React datepicker component that exclusively uses UTC.

Install

npm install --save react-utc-datepicker

Dependencies

How to use

  • import {ReactUTCDatepicker} from 'react-utc-datepicker';
  • format prop, for formatting date (and time, if necessary); defaults to 'YYYY-MM-DD'. Uses Moment formatting.
  • button prop, for showing/hiding a button which opens the calendar popup (defaults to true)
  • buttonPosition prop, possible values are before and after (defaults to after)
  • onChange prop, for tracking the date value

Examples

<ReactUTCDatepicker date={myDate} onChange={value => { console.log(value); }}/>
<ReactUTCDatepicker date={myDate} button={false} onChange={value => { console.log(value); }}></utc-datepicker/>
<ReactUTCDatepicker date={myDate} buttonPosition="before" format="MM/DD/YYYY HH:mm:ss" onChange={value => { console.log(value); }}/>
0.1.8

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago