Skip to content

Working hours

timeFrame hides the night and keeps edits inside the working day; getIsDayDisabled blocks weekends.

Resultยท try dropping an event on Saturday
<Calendar
timeFrame={{ hourMin: 8, hourMax: 18 }}
hideMinMaxTime
getIsDayDisabled={(date) => date.getDay() === 0 || date.getDay() === 6}
{...props}
/>