API Documentation
Calendar props
| Name | Description |
|---|---|
| calendar | Calendar object returned by the useEventsCalendar hook |
| compact | Renders a more compact calendar |
| enableDragCreation | Enables drag event creation |
| events | Main array containing events to display in the calendar |
| isFetching | Activates a loading overlay. Useful for asynchronous data fetching |
| noHeader | Removes the default calendar header |
| onEventClick | Event click handler |
| onEventCreate | Event creation handler. Fires after event drag creation. Requires enableDragCreation |
| renderPopover | Render function for popovers bound to a calendar event. Used with onEventClick and onEventCreate to display events within a popover. |
| renderContextMenu | Render function for a context menu bound to a calendar event. Used with onEventClick and onEventCreate to bind actions to an event. |
| views | A subset of the array ['year', 'month', 'week', 'day']. Determines the view control in the default header |
Calendar prop types
Calendar event object
The useEventsCalendar hook
With the useEventsCalendar hook, you can set the initial state of the calendar, as well as manage the calendar state externally. A common use-case is for creating custom header elements.
The hook returns a object containing the following properties:
On this page