input-dayjs

0.5.1 • Public • Published

input-dayjs

npm Build Status styled with prettier

React datetime picker powered by dayjs

The design is from https://dribbble.com/shots/1439965-Due-Date-and-Time-Picker.

The icon is from ionicons.

Installation

npm i input-dayjs --save

Notice: This module requires dayjs as a peerDependency.

Demo

http://shkumbin.github.io/input-dayjs

Usage

<InputDayJS
  dayjs={this.state.dayjs}
  onChange={this.handleChange}
  onSave={this.handleSave}
  minStep={1} // default
  hourStep={1} // default
  prevMonthIcon="ion-ios-arrow-left" // default
  nextMonthIcon="ion-ios-arrow-right" // default
/>

Check app.js for a working example.

Development

License

ISC

Package Sidebar

Install

npm i input-dayjs

Weekly Downloads

4

Version

0.5.1

License

MIT

Unpacked Size

277 kB

Total Files

15

Last publish

Collaborators

  • shkumbini