react-datepicker
react-datepicker copied to clipboard
Provide visible years range in renderCustomHeader method
Is your feature request related to a problem? Please describe. I'd like to develop a custom header using showYearPicker with information about the visible year range. The visible years range is not currently provided in the renderCustomHeader props.
Check out a sandbox: https://stackblitz.com/edit/vitejs-vite-cyahbe6y?file=src%2FApp.tsx&terminal=dev
Describe the solution you'd like Include props.yearRange: Int[] or props.visibleYearsRangeStart: Int and props.visibleYearsRangeEnd: Int.
Describe alternatives you've considered Styling the default header doesn't seem to provide necessary flexibility.
This is a nice suggestion. I'll work on it.