react-keyboard-date-picker-tis

1.2.4 • Public • Published

react-keyboard-date-picker-tis

Date picker component for React

NPM JavaScript Style Guide

react-keyboard-date-picker-tis Banner

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

Readme

Keywords

none

Package Sidebar

Install

npm i react-keyboard-date-picker-tis

Weekly Downloads

1

Version

1.2.4

License

MIT

Unpacked Size

428 kB

Total Files

20

Last publish

Collaborators

  • itsmohammadbahrami