-
Hi, I couldn't find way to disable spesific dates, could be like
is it possible? am I missing something or I can only give from - to props to achieve that but my disabled dates are not in sort can be multiple and can be in different month/year too |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
hi @poseimus. As far as I know, the built-in disabled modifier does not currently support an array of specific dates out of the box like you mentioned. However, you can achieve the same behavior using custom modifiers, similar to how the booked days example works. Here's how you could implement it:
This way, you can disable arbitrary dates, even if they’re not in order or span multiple months/years. |
Beta Was this translation helpful? Give feedback.
It is actually possible to use an array of dates to disable:
I understand this was not clear enough from the docs, so I've updated them to be more explicit:
https://daypicker.dev/docs/selection-modes#disabled