Date picker component for React
npm i react-keyboard-date-picker-tis
or
yarn add react-keyboard-date-picker-tis
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
{
year: PropTypes.number,
month: PropTypes.number,
day: PropTypes.number,
}
MIT © boof-tech