Skip to content
Discussion options

You must be logged in to vote

Thanks for the report @dotio

In v9 the DayContent component was removed, so passing components={{ DayContent: ... }} doesn’t hook into the day button anymore. The clickable area and onSelect are handled by DayButton, so if custom content sits outside that button (or overlays it), clicks won’t reach the handler. This why pointer-events: none appears to “fix” it.

Recommended options in v9:

  1. If you only need text: use the formatDay formatter.
  2. If you need richer UI: override DayButton and render your custom content inside it while forwarding all props (important).

Example:

import { DayButton, type DayButtonProps, DayPicker } from "react-day-picker";

function CustomDayButton(props: DayButton…

Replies: 1 comment

Comment options

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

This discussion was converted from issue #2892 on February 03, 2026 12:54.