How to apply styles to & disable tiles for certain dates? #610
Unanswered
AndreYanny
asked this question in
Q&A
Replies: 1 comment
-
This is how you can apply tile styles based on list of dates: https://codesandbox.io/s/react-calendar-tileclassname-0nlmh and almost identically, you can disable tiles based on list of dates: |
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
-
I'm making a booking website. I made an array called bookedDates, that's filled with dummy dates. Now I want to change the background color of the booked dates and if possible make them inaccessible for anyone who wants to make any bookings in those dates.
This is my Calendar code:
const [date, onChange] = useState(new Date());
Beta Was this translation helpful? Give feedback.
All reactions