2.0.4 • Published 6 years ago

date-time-picker-react v2.0.4

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

A Date & Time picker for React

npm package Coveralls

Install

yarn add date-time-picker-react

Usage

import DateTimePicker from "date-time-picker-react";

class Demo extends React.Component {
  ...
  render() {
    return (
      <DateTimePicker onChange={value => {
        // do something...
      }}>
    );
  }
  ...
}

Props

NameTypeDefaultDescription
initialValueDatenew Date()An initial date/time. Default is now.
dateFormatstring"DD/MM/YY HH:mm"A Date format. Default is "DD/MM/YY HH:mm".
inputStyle{ [string]: any }nullAdditional styles for the input element.
highlightColorstring"#00a699"The selected/focussed highlight color.
minDatenullThe earliest selectable date.
maxDatenullThe lastest selectable date.
onChange(value: Date) => anynullDispatches selected date/time on every date/time change.

Contributing

  • Install deps with yarn
  • Run webpack with yarn dev
  • Build with yarn build
  • Type check with yarn flow
2.0.4

6 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.0.0

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.11

7 years ago

0.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago