Examples
Holiday rental booking
Built with the mantine-calendar skill
November 2026
| Mo | Tu | We | Th | Fr | Sa | Su |
|---|---|---|---|---|---|---|
Available night
Booked night
Stay preview
Not a valid check-out
Your stay
Check-in
Choose a date
Check-out
Choose a date
Nights
—
Total
—
Build the date picker of a holiday rental page: a guest picks check-in and check-out and sees the price of the stay.
Data:
- nightly prices for the next 12 months, generated relative to today: a base price, higher on Friday and Saturday nights, higher in July and August, and a few holiday nights with their own price
- about 10 existing bookings spread over the next 4 months, generated relative to today
- minimum stay is 2 nights, 3 nights if the stay includes a Saturday night; the longest stay is 21 nights
Calendar:
- two months side by side, one month on screens narrower than a tablet; the past cannot be picked
- every free night shows its price in the day cell; booked nights look unavailable
- check-out may fall on the first night of another booking (the guest leaves that morning), but a stay can never include a booked night
- while check-in is picked and check-out is not, hovering a day previews the stay, and days that cannot be a valid check-out look unavailable
- a stay that breaks a rule is not accepted, and the reason is shown under the calendar ("Stays including a Saturday are at least 3 nights")
- prices and availability are read by screen readers
Value:
- next to the calendar: the dates, the number of nights, the total price and a "Clear dates" button
- "Reserve" shows a short notification and displays the stay as JSON under the component
The component is shown on a demo page that already has a title: do not add a page title or intro text.
Write tests for the component.