uselessdev / datepicker

A simple datepicker with Chakra-UI and date-fns

Home Page:https://uselessdev-datepicker.netlify.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Disable dates after/before certain date

branikclimbs opened this issue · comments

It would be useful if props disablePastDates, disableFutureDates could take a date as an option. Alternatively, it could be new props called disablePastDatesFrom, disableFutureDatesFrom.
In my case, I need to allow users to select only a certain range let's say from January first to February second. I need all other dates to be disabled.
I can make PR for that if it is okay.

Hi @branislaav thanks for reporting, I appreciate it if you can make a pull request.

@branislaav this was released in v2.3.0 thanks again