Replies: 1 comment
-
Here the behavior on the formatter is correct, as it is applied to all the day headers. You could pass a import { DayPicker, HeadRow } from 'react-day-picker';
function CustomHeadRow(props: HeadRowProps) {
return <HeadRow ...props>
}
<DayPicker customComponents={{ HeadRow: CustomHeadRow }} /> You could also target that 6th cell in the 1st table with a CSS like this - have you considered this option? .rdp-month:nth-child(1).rdp-head_cell:nth-child(6) {
color: red;
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Bug description
Hi, awesome library, but I have found a one small bug, I want to highlight current day of the week, I did it using the following code
but in the second month day is also highlighted.
To reproduce
Link to reproduce
Expected behavior
Day is highlighted only in 1 month
Screenshots
Beta Was this translation helpful? Give feedback.
All reactions