CampsiteAvailabilityCalendar

fun CampsiteAvailabilityCalendar(unavailableDates: Set<LocalDate>, startDate: LocalDate?, endDate: LocalDate?, onDateRangeChange: (LocalDate?, LocalDate?) -> Unit, modifier: Modifier = Modifier, initialMonth: YearMonth = YearMonth.now())

Displays an interactive calendar for selecting reservation dates.

Allows users to select a date range while excluding unavailable dates.

Parameters

unavailableDates

Dates that cannot be booked.

startDate

The selected start date, or null.

endDate

The selected end date, or null.

onDateRangeChange

Callback for updating the date range.

modifier

Customizes the calendar layout.

initialMonth

The initially displayed month.