react-keyboard-date-picker-tis
Date picker component for React
Install
npm i react-keyboard-date-picker-tis
or
yarn add react-keyboard-date-picker-tis
Usage
import React from 'react'
import { KeyboardDatePicker } from 'react-keyboard-date-picker-tis'
import 'react-keyboard-date-picker-tis/dist/index.css'
const App = () => {
return (
<KeyboardDatePicker
className='KeyboardDatePicker'
onChange={(dateTime) => console.log(dateTime)}
initialDateTime={today} //dateTime object
min={today} //dateTime object
max={nexMonth} //dateTime object
darkMode={false}
/>
)
}
export default App
DateTime shape
{
year: PropTypes.number,
month: PropTypes.number,
day: PropTypes.number,
}
License
MIT © boof-tech