react-datepicker icon indicating copy to clipboard operation
react-datepicker copied to clipboard

Provide visible years range in renderCustomHeader method

Open Luftare opened this issue 7 months ago • 1 comments

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.

Luftare avatar May 23 '25 12:05 Luftare

This is a nice suggestion. I'll work on it.

SaiBalaji202 avatar Jun 08 '25 16:06 SaiBalaji202