Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need Year Selection #374

Open
arunkumar-pyt opened this issue Jan 8, 2024 · 4 comments
Open

Need Year Selection #374

arunkumar-pyt opened this issue Jan 8, 2024 · 4 comments

Comments

@arunkumar-pyt
Copy link

Need year selection if I press month header

@arunkumar-pyt arunkumar-pyt added the bug Something isn't working label Jan 8, 2024
@maggialejandro maggialejandro added feature request and removed bug Something isn't working labels Jan 8, 2024
@maggialejandro
Copy link
Owner

That can be implemented by adding a custom render prop here

{showMonthTitle && <MonthTitle name={monthName} theme={theme} />}

PR's are welcome!

@arunkumar-pyt
Copy link
Author

Please kindly give me sample code for month header custom rendering with clickable

@maggialejandro
Copy link
Owner

It's not implemented, you can modify that line adding a custom prop to Calendar, something like

renderMonthTitle?: (monthName: string, theme?: ThemeType) => ReactElement;

Copy link

stale bot commented Mar 17, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You may also mark this issue as a "discussion" and I will leave this open.

@stale stale bot added the stale label Mar 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants