react-calendar
react-calendar copied to clipboard
Feature Request - Add prop to customize current view title text
Before you start - checklist
- [X] I have checked if this feature request is not already reported
Description
I would like to be able to customize the title text. By title text, I'm referring to the text that appears in the top center of the component. In this case "December 2021."
Proposed solution
I think the best way to do this would be to pass in a function as a prop that returns a string. The function would receive context data as args. So for example, things like the selected month, year, etc. so we could use to create our string.
Alternatives
Haven't found any yet.
Additional information
No response
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 14 days.
whats the update on these
+1
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 14 days.
This issue was closed because it has been stalled for 14 days with no activity.
There's navigationLabel
prop you can use.
Example: https://codesandbox.io/s/react-calendar-navigation-label-46eu1o