input-dayjs
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
<InputDayJSdayjs=thisstatedayjsonChange=thishandleChangeonSave=thishandleSaveminStep=1 // defaulthourStep=1 // defaultprevMonthIcon="ion-ios-arrow-left" // defaultnextMonthIcon="ion-ios-arrow-right" // default/>
Check app.js for a working example.
Development
- npm install
- npm start
- http://localhost:8080
License
ISC