Skip to content

DayContent missing from CustomComponents #2406

Answered by gpbl
hrypkema-amplify asked this question in Support
Discussion options

You must be logged in to vote

@hrypkema-amplify Yes, the DayContent component has been removed in v9.

If you want to customize the content of the day when is not the DayButton component, pass a custom formatDay formatter:

<DayPicker
  formatters={{
    formatDay: (day) => String(day.getDate())
  }}
/>

Thanks for reporting that comment in the documentation. I'm going to remove it...

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by gpbl
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants