Is your feature request related to a problem? Please describe.
I often need to disable all past dates. As I can find the disabled dates prop is only a list of dates so to achieve this I would need a list of all dates dating back to when ever the calendar starts. generating that list would be annoying and unnecessary.
If this function already exists better docs for this would be nice
Describe the solution you'd like
I would like to be able to disable all dates that are before a given date or at least a prop like disable-past-dates: boolean
Describe alternatives you've considered
Update the prop to be like this?
disabled-dates: {
to: Date,
from: Date,
dates: Date[]
}
Or to avoid breaking changes it is possible to add another prop like disable-dates-to
Is your feature request related to a problem? Please describe. I often need to disable all past dates. As I can find the disabled dates prop is only a list of dates so to achieve this I would need a list of all dates dating back to when ever the calendar starts. generating that list would be annoying and unnecessary.
If this function already exists better docs for this would be nice
Describe the solution you'd like I would like to be able to disable all dates that are before a given date or at least a prop like disable-past-dates: boolean
Describe alternatives you've considered Update the prop to be like this?
Or to avoid breaking changes it is possible to add another prop like disable-dates-to