Skip to content

2Bid/datepicker-input-react

Repository files navigation

datepicker-input-react

Datepicker-input-react is a library based on create-react-library. This library return an input field who display a calendar when the input field is clicked, and return the selected date into input field.

Features include:

  • Displays days of previous and next month
  • Got a home button to reset date
  • Extends to 50 years before and after actual year

Install

npm i datepicker-input-react

Usage

import React from 'react'
import DatepickerInput from 'datepicker-input-react'
import 'datepicker-input-react/dist/index.css'

export default function DatepickerInputContainer() {

  const onChange = (e) => {
    console.log(e)
  }
  
  return (
    <DatepickerInput onChange={(e)=>onChange(e)}/>
  )
}

Props

onChange subscribe to date change ( required )

License

MIT © 2Bid

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published