Skip to main content

Appointment Calendar

The AppointmentCalendar component is a flexible UI component designed for displaying and managing date- and time-based appointments. It offers intuitive day-to-day navigation, time slot selection, and event-driven updates to support dynamic scheduling workflows.

Props

AttributeDescriptionType
dailyTimeSlotsDefines the available dates and time slots for appointments. Each item includes a date, times, and optionally disabledTimes. Example: [ { date: '04-04-2025', times: ['09:00', '10:00'], disabledTimes: ['10:00'] } ]Array
localeSets the locale used for date and day name formatting (e.g. 'tr' for Turkish).string
dateFormatCustomizes how dates are displayed. Default is "DD.MM.YYYY".string
timeFormatDefines the display format of time labels (e.g. "HH:mm").string
loadingDisplays a loading spinner when true. Useful for async data fetching.boolean
hideHeaderHides the top date navigation bar when true.boolean

Events

Event NameDescriptionParameters
dateChangeTriggered when either the date or time selection changes. Returns current date and times.{ date, selectedTime, availableTimeSlots, disabledTimeSlots }
selectDateFired when a new date is selected from the header.{ date }
selectTimeFired when a time slot is selected.{ time }
dateNavigateFired when navigating between dates using the previous (<) or next (>) buttons.{ date }