@idot-digital/date-selector
v1.0.0
Published
Input date and time, using input fields and popups
Downloads
1
Readme
date-selector
Input date and time, using input fields and popups
Install
npm install --save date-selector
Usage
import React, { Component } from 'react'
import { DatePicker, DatePickerKeyboard } from 'date-selector'
import 'date-selector/dist/index.css'
class Example extends Component {
render() {
return (
<React.Fragment>
<DatePickerKeyboard
callback={(_, date) => console.log(date)}
defaultDate={{ day: 12, month: 10, year: 2020 }}
/>
<DatePicker
callback={(date) => console.log(date)}
timeperiodDate={new Date(2020, 2, 2)}
/>
</React.Fragment>
)
}
}
License
UNLICENSED © @idot-digital