How to add styles to current date in Date Range Pickers from react-aria-components #6935
-
I'm developing a date range picker using react-aria-components but we are missing to style current date specially which is already in react spectrum date picker. Can you please tell us how to do it. |
Beta Was this translation helpful? Give feedback.
Answered by
reidbarber
Aug 23, 2024
Replies: 1 comment
-
There is an |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
RajaTheKing826
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is an
isToday
function in@internationalized/date
that you can use: https://react-spectrum.adobe.com/internationalized/date/CalendarDate.html#comparisonYou can pass the date for each cell into that.