Skip to content
This repository has been archived by the owner on Feb 10, 2024. It is now read-only.

tiss-co/react-keyboard-date-picker-tis

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published