EventCalendar API
API reference docs for the React EventCalendar component. Learn about the props, CSS, and other APIs of this exported module.
Demos
Import
import { EventCalendar } from '@mui/x-scheduler/event-calendar';
// or
import { EventCalendar } from '@mui/x-scheduler';Learn about the difference by reading this guide on minimizing bundle size.
Props of the native component are also available.
| Name | Type | Default | Description |
|---|---|---|---|
| apiRef | { current?: { setVisibleDate?: func } } | - | The ref object that allows Event Calendar manipulation. Can be instantiated with |
| areEventsDraggable | bool | true | Whether the event can be dragged to change its start and end dates without changing the duration. |
| areEventsResizable | 'end' | 'start' | bool | true | Whether the event start or end can be dragged to change its duration without changing its other date. If |
| canDragEventsFromTheOutside | bool | false | Whether events can be dragged from outside of the calendar and dropped into it. |
| canDropEventsToTheOutside | bool | false | Whether events can be dragged from inside of the calendar and dropped outside of it. If true, when the mouse leaves the calendar, the event won't be rendered inside the calendar anymore. If false, when the mouse leaves the calendar, the event will be rendered in its last valid position inside the calendar. |
| classes | object | - | Override or extend the styles applied to the component. See CSS classes API below for more details. |
| dataSource | { getEvents: func, updateEvents: func } | - | Data source for fetching events asynchronously. When provided, events are fetched through the data source instead of the |
| dateLocale | object | enUS (English) | The locale object from |
| defaultPreferences | { ampm?: bool, isSidePanelOpen?: bool, showEmptyDaysInAgenda?: bool, showWeekends?: bool, showWeekNumber?: bool } | { showWeekends: true, showWeekNumber: false, isSidePanelOpen: true, showEmptyDaysInAgenda: true, ampm: true } | The default preferences for the calendar. To use controlled preferences, use the |
| defaultView | 'agenda' | 'day' | 'month' | 'week' | "week" | The view initially displayed in the calendar. To render a controlled calendar, use the |
| defaultVisibleDate | Date | today | The date initially used to determine the visible date range in each view. To render a controlled calendar, use the |
| defaultVisibleResources | object | {} - all resources are visible | The IDs of the resources initially visible. To render a controlled scheduler, use the |
| displayTimezone | string | "default" | The timezone used to display events in the scheduler. |
| eventColor | 'amber' | 'blue' | 'green' | 'grey' | 'indigo' | 'lime' | 'orange' | 'pink' | 'purple' | 'red' | 'teal' | "teal" | The color palette used for all events. Can be overridden per resource using the |
| eventModelStructure | object | - | The structure of the event model. It defines how to read and write the properties of the event model. If not provided, the event model is assumed to match the |
| events | Array<object> | [] | The events currently available in the calendar. |
| localeText | object | - | Set the locale text of the Event Calendar. You can find all the translation keys supported in the source in the GitHub repository. |
| onEventsChange | func | - | Callback fired when some event of the calendar change. |
| onPreferencesChange | func | - | Event handler called when the preferences change. |
| onViewChange | func | - | Event handler called when the view changes. |
| onVisibleDateChange | func | - | Event handler called when the visible date changes. |
| onVisibleResourcesChange | func | - | Event handler called when the visible resources change. |
| preferences | { ampm?: bool, isSidePanelOpen?: bool, showEmptyDaysInAgenda?: bool, showWeekends?: bool, showWeekNumber?: bool } | - | Preferences currently displayed in the calendar. |
| preferencesMenuConfig | false | { toggleAmpm?: bool, toggleEmptyDaysInAgenda?: bool, toggleWeekendVisibility?: bool, toggleWeekNumberVisibility?: bool } | { toggleWeekendVisibility: true, toggleWeekNumberVisibility: true, toggleAmpm: true, toggleEmptyDaysInAgenda: true } | Config of the preferences menu. Defines which options are visible in the menu. If |
| readOnly | bool | false | Whether the calendar is in read-only mode. |
| resourceModelStructure | object | - | The structure of the resource model. It defines how to read and write the properties of the resource model. If not provided, the resource model is assumed to match the |
| resources | Array<object> | - | The resources the events can be assigned to. |
| showCurrentTimeIndicator | bool | true | Whether the component should display the current time indicator. |
| sx | Array<func | object | bool> | func | object | - | The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details. |
| view | 'agenda' | 'day' | 'month' | 'week' | - | The view currently displayed in the calendar. |
| views | Array<'agenda' | 'day' | 'month' | 'week'> | ["day", "week", "month", "agenda"] | The views available in the calendar. |
| visibleDate | Date | - | The date currently used to determine the visible date range in each view. |
| visibleResources | object | - | The IDs of the resources currently visible. A resource is visible if it is not included in this object or if it is included with |
ref is forwarded to the root element.Theme default props
You can use MuiEventCalendar to change the default props of this component with the theme.
These class names are useful for styling with CSS. They are applied to the component's slots when specific states are triggered.
| Class name | Rule name | Description |
|---|---|---|
| .MuiEventCalendar-agendaView | agendaView | Styles applied to the agenda view element. |
| .MuiEventCalendar-agendaViewDayHeaderCell | agendaViewDayHeaderCell | Styles applied to agenda view day header cell elements. |
| .MuiEventCalendar-agendaViewDayNumberCell | agendaViewDayNumberCell | Styles applied to agenda view day number cell elements. |
| .MuiEventCalendar-agendaViewEventListItem | agendaViewEventListItem | Styles applied to the agenda view event list item elements. |
| .MuiEventCalendar-agendaViewEventsList | agendaViewEventsList | Styles applied to the agenda view events list element. |
| .MuiEventCalendar-agendaViewRow | agendaViewRow | Styles applied to agenda view row elements. |
| .MuiEventCalendar-agendaViewWeekDayCell | agendaViewWeekDayCell | Styles applied to agenda view week day cell elements. |
| .MuiEventCalendar-agendaViewWeekDayNameLabel | agendaViewWeekDayNameLabel | Styles applied to agenda view week day name label elements. |
| .MuiEventCalendar-agendaViewYearAndMonthLabel | agendaViewYearAndMonthLabel | Styles applied to agenda view year and month label elements. |
| .MuiEventCalendar-content | content | Styles applied to the content section element. |
| .MuiEventCalendar-dayGridEvent | dayGridEvent | Styles applied to day grid event elements. |
| .MuiEventCalendar-dayGridEventCardContent | dayGridEventCardContent | Styles applied to day grid event card content elements. |
| .MuiEventCalendar-dayGridEventCardWrapper | dayGridEventCardWrapper | Styles applied to day grid event card wrapper elements. |
| .MuiEventCalendar-dayGridEventLinesClamp | dayGridEventLinesClamp | Styles applied to day grid event lines clamp elements. |
| .MuiEventCalendar-dayGridEventPlaceholder | dayGridEventPlaceholder | Styles applied to day grid event placeholder elements. |
| .MuiEventCalendar-dayGridEventRecurringIcon | dayGridEventRecurringIcon | Styles applied to day grid event recurring icon elements. |
| .MuiEventCalendar-dayGridEventResizeHandler | dayGridEventResizeHandler | Styles applied to day grid event resize handler elements. |
| .MuiEventCalendar-dayGridEventTime | dayGridEventTime | Styles applied to day grid event time elements. |
| .MuiEventCalendar-dayGridEventTitle | dayGridEventTitle | Styles applied to day grid event title elements. |
| .MuiEventCalendar-dayTimeGrid | dayTimeGrid | Styles applied to the day time grid element. |
| .MuiEventCalendar-dayTimeGridAllDayEventContainer | dayTimeGridAllDayEventContainer | Styles applied to day time grid all day event container elements. |
| .MuiEventCalendar-dayTimeGridAllDayEventsCell | dayTimeGridAllDayEventsCell | Styles applied to day time grid all day events cell elements. |
| .MuiEventCalendar-dayTimeGridAllDayEventsCellEvents | dayTimeGridAllDayEventsCellEvents | Styles applied to day time grid all day events cell events container elements. |
| .MuiEventCalendar-dayTimeGridAllDayEventsGrid | dayTimeGridAllDayEventsGrid | Styles applied to the day time grid all day events grid element. |
| .MuiEventCalendar-dayTimeGridAllDayEventsHeaderCell | dayTimeGridAllDayEventsHeaderCell | Styles applied to the day time grid all day events header cell element. |
| .MuiEventCalendar-dayTimeGridAllDayEventsRow | dayTimeGridAllDayEventsRow | Styles applied to the day time grid all day events row element. |
| .MuiEventCalendar-dayTimeGridBody | dayTimeGridBody | Styles applied to the day time grid body element. |
| .MuiEventCalendar-dayTimeGridColumn | dayTimeGridColumn | Styles applied to day time grid column elements. |
| .MuiEventCalendar-dayTimeGridColumnInteractiveLayer | dayTimeGridColumnInteractiveLayer | Styles applied to day time grid column interactive layer elements. |
| .MuiEventCalendar-dayTimeGridContainer | dayTimeGridContainer | Styles applied to the day time grid container element. |
| .MuiEventCalendar-dayTimeGridCurrentTimeIndicator | dayTimeGridCurrentTimeIndicator | Styles applied to the day time grid current time indicator element. |
| .MuiEventCalendar-dayTimeGridCurrentTimeIndicatorCircle | dayTimeGridCurrentTimeIndicatorCircle | Styles applied to the day time grid current time indicator circle element. |
| .MuiEventCalendar-dayTimeGridCurrentTimeLabel | dayTimeGridCurrentTimeLabel | Styles applied to the day time grid current time label element. |
| .MuiEventCalendar-dayTimeGridGrid | dayTimeGridGrid | Styles applied to the day time grid grid element. |
| .MuiEventCalendar-dayTimeGridHeader | dayTimeGridHeader | Styles applied to the day time grid header element. |
| .MuiEventCalendar-dayTimeGridHeaderButton | dayTimeGridHeaderButton | Styles applied to day time grid header button elements. |
| .MuiEventCalendar-dayTimeGridHeaderCell | dayTimeGridHeaderCell | Styles applied to day time grid header cell elements. |
| .MuiEventCalendar-dayTimeGridHeaderContent | dayTimeGridHeaderContent | Styles applied to day time grid header content elements. |
| .MuiEventCalendar-dayTimeGridHeaderDayName | dayTimeGridHeaderDayName | Styles applied to day time grid header day name elements. |
| .MuiEventCalendar-dayTimeGridHeaderDayNumber | dayTimeGridHeaderDayNumber | Styles applied to day time grid header day number elements. |
| .MuiEventCalendar-dayTimeGridScrollableContent | dayTimeGridScrollableContent | Styles applied to the day time grid scrollable content element. |
| .MuiEventCalendar-dayTimeGridScrollablePlaceholder | dayTimeGridScrollablePlaceholder | Styles applied to the day time grid scrollable placeholder element. |
| .MuiEventCalendar-dayTimeGridTimeAxis | dayTimeGridTimeAxis | Styles applied to the day time grid time axis element. |
| .MuiEventCalendar-dayTimeGridTimeAxisCell | dayTimeGridTimeAxisCell | Styles applied to day time grid time axis cell elements. |
| .MuiEventCalendar-dayTimeGridTimeAxisText | dayTimeGridTimeAxisText | Styles applied to day time grid time axis text elements. |
| .MuiEventCalendar-errorAlert | errorAlert | Styles applied to the error alert element. |
| .MuiEventCalendar-errorContainer | errorContainer | Styles applied to the error container element. |
| .MuiEventCalendar-errorMessage | errorMessage | Styles applied to the error message element. |
| .MuiEventCalendar-eventColorIndicator | eventColorIndicator | Styles applied to event color indicator elements. |
| .MuiEventCalendar-eventDialog | eventDialog | Styles applied to the event dialog root element. |
| .MuiEventCalendar-eventDialogActions | eventDialogActions | Styles applied to the event dialog actions element. |
| .MuiEventCalendar-eventDialogCloseAction | eventDialogCloseAction | Styles applied to the event dialog close action button element. |
| .MuiEventCalendar-eventDialogCloseButton | eventDialogCloseButton | Styles applied to the event dialog close button element. |
| .MuiEventCalendar-eventDialogContent | eventDialogContent | Styles applied to the event dialog content element. |
| .MuiEventCalendar-eventDialogDateTimeContainer | eventDialogDateTimeContainer | Styles applied to the event dialog date time container element. |
| .MuiEventCalendar-eventDialogDateTimeFieldsContainer | eventDialogDateTimeFieldsContainer | Styles applied to the event dialog date time fields container element. |
| .MuiEventCalendar-eventDialogDateTimeFieldsRow | eventDialogDateTimeFieldsRow | Styles applied to the event dialog date time fields row element. |
| .MuiEventCalendar-eventDialogDateTimeIcon | eventDialogDateTimeIcon | Styles applied to the event dialog date time icon element. |
| .MuiEventCalendar-eventDialogDateTimeLabel | eventDialogDateTimeLabel | Styles applied to the event dialog date time label element. |
| .MuiEventCalendar-eventDialogDeleteButton | eventDialogDeleteButton | Styles applied to the event dialog delete button element. |
| .MuiEventCalendar-eventDialogDescriptionLabel | eventDialogDescriptionLabel | Styles applied to the event dialog description label element. |
| .MuiEventCalendar-eventDialogEndsRadioGroup | eventDialogEndsRadioGroup | Styles applied to the event dialog ends radio group element. |
| .MuiEventCalendar-eventDialogForm | eventDialogForm | Styles applied to the event dialog form element. |
| .MuiEventCalendar-eventDialogFormActions | eventDialogFormActions | Styles applied to the event dialog form actions element. |
| .MuiEventCalendar-eventDialogFormDivider | eventDialogFormDivider | Styles applied to the event dialog form divider element. |
| .MuiEventCalendar-eventDialogFrequencySelect | eventDialogFrequencySelect | Styles applied to the event dialog frequency select element. |
| .MuiEventCalendar-eventDialogHeader | eventDialogHeader | Styles applied to the event dialog header element. |
| .MuiEventCalendar-eventDialogInlineRow | eventDialogInlineRow | Styles applied to the event dialog inline row element. |
| .MuiEventCalendar-eventDialogPaper | eventDialogPaper | Styles applied to the event dialog paper element. |
| .MuiEventCalendar-eventDialogRadioButtonLabel | eventDialogRadioButtonLabel | Styles applied to the event dialog radio button label element. |
| .MuiEventCalendar-eventDialogReadonlyContent | eventDialogReadonlyContent | Styles applied to the event dialog readonly content element. |
| .MuiEventCalendar-eventDialogRecurrenceIcon | eventDialogRecurrenceIcon | Styles applied to the event dialog recurrence icon element. |
| .MuiEventCalendar-eventDialogRecurrenceLabel | eventDialogRecurrenceLabel | Styles applied to the event dialog recurrence label element. |
| .MuiEventCalendar-eventDialogRecurrenceLabelContainer | eventDialogRecurrenceLabelContainer | Styles applied to the event dialog recurrence label container element in the readonly content. |
| .MuiEventCalendar-eventDialogRecurrenceSelectorContainer | eventDialogRecurrenceSelectorContainer | Styles applied to the event dialog recurrence selector container element. |
| .MuiEventCalendar-eventDialogRecurrenceSelectorToggleGroup | eventDialogRecurrenceSelectorToggleGroup | Styles applied to the event dialog recurrence selector toggle group element. |
| .MuiEventCalendar-eventDialogRepeatSectionContent | eventDialogRepeatSectionContent | Styles applied to the event dialog repeat section content element. |
| .MuiEventCalendar-eventDialogRepeatSectionFieldset | eventDialogRepeatSectionFieldset | Styles applied to the event dialog repeat section fieldset element. |
| .MuiEventCalendar-eventDialogRepeatSectionLabel | eventDialogRepeatSectionLabel | Styles applied to the event dialog repeat section label element. |
| .MuiEventCalendar-eventDialogResourceContainer | eventDialogResourceContainer | Styles applied to the event dialog resource container element. |
| .MuiEventCalendar-eventDialogResourceLegendColor | eventDialogResourceLegendColor | Styles applied to the event dialog resource legend color element. |
| .MuiEventCalendar-eventDialogResourceLegendContainer | eventDialogResourceLegendContainer | Styles applied to the event dialog resource legend container element. |
| .MuiEventCalendar-eventDialogResourceMenuColorDot | eventDialogResourceMenuColorDot | Styles applied to the event dialog resource menu color dot element. |
| .MuiEventCalendar-eventDialogResourceMenuColorRadioButton | eventDialogResourceMenuColorRadioButton | Styles applied to the event dialog resource menu color radio button element. |
| .MuiEventCalendar-eventDialogResourceMenuItem | eventDialogResourceMenuItem | Styles applied to the event dialog resource menu item element. |
| .MuiEventCalendar-eventDialogResourceMenuListSubheader | eventDialogResourceMenuListSubheader | Styles applied to the event dialog resource menu list subheader element. |
| .MuiEventCalendar-eventDialogResourceTitle | eventDialogResourceTitle | Styles applied to the event dialog resource title element. |
| .MuiEventCalendar-eventDialogSaveButton | eventDialogSaveButton | Styles applied to the event dialog save button element. |
| .MuiEventCalendar-eventDialogSectionHeaderTitle | eventDialogSectionHeaderTitle | Styles applied to the event dialog section header title element. |
| .MuiEventCalendar-eventDialogSmallNumberField | eventDialogSmallNumberField | Styles applied to the event dialog small number field element. |
| .MuiEventCalendar-eventDialogTab | eventDialogTab | Styles applied to the event dialog tab elements. |
| .MuiEventCalendar-eventDialogTabContent | eventDialogTabContent | Styles applied to the event dialog tab content element. |
| .MuiEventCalendar-eventDialogTabPanel | eventDialogTabPanel | Styles applied to the event dialog tab panel element. |
| .MuiEventCalendar-eventDialogTabsContainer | eventDialogTabsContainer | Styles applied to the event dialog tabs container element. |
| .MuiEventCalendar-eventDialogTitle | eventDialogTitle | Styles applied to the event dialog title element. |
| .MuiEventCalendar-eventDialogWeekDaySelectorCheckbox | eventDialogWeekDaySelectorCheckbox | Styles applied to the event dialog week day selector form group element. |
| .MuiEventCalendar-eventDragPreview | eventDragPreview | Styles applied to the event drag preview element. |
| .MuiEventCalendar-eventItemCard | eventItemCard | Styles applied to event item card elements. |
| .MuiEventCalendar-eventItemCardContent | eventItemCardContent | Styles applied to event item card content elements. |
| .MuiEventCalendar-eventItemCardWrapper | eventItemCardWrapper | Styles applied to event item card wrapper elements. |
| .MuiEventCalendar-eventItemLinesClamp | eventItemLinesClamp | Styles applied to event item lines clamp elements. |
| .MuiEventCalendar-eventItemRecurringIcon | eventItemRecurringIcon | Styles applied to event item recurring icon elements. |
| .MuiEventCalendar-eventItemTime | eventItemTime | Styles applied to event item time elements. |
| .MuiEventCalendar-eventItemTitle | eventItemTitle | Styles applied to event item title elements. |
| .MuiEventCalendar-eventSkeleton | eventSkeleton | Styles applied to event skeleton elements. |
| .MuiEventCalendar-headerToolbar | headerToolbar | Styles applied to the header toolbar element. |
| .MuiEventCalendar-headerToolbarActions | headerToolbarActions | Styles applied to the header toolbar actions element. |
| .MuiEventCalendar-headerToolbarDateNavigator | headerToolbarDateNavigator | Styles applied to the header toolbar date navigator buttons container element. |
| .MuiEventCalendar-headerToolbarLabel | headerToolbarLabel | Styles applied to the header toolbar label element. |
| .MuiEventCalendar-headerToolbarLeftElement | headerToolbarLeftElement | Styles applied to the header toolbar left side element. |
| .MuiEventCalendar-headerToolbarNextButton | headerToolbarNextButton | Styles applied to the header toolbar next button element. |
| .MuiEventCalendar-headerToolbarPreviousButton | headerToolbarPreviousButton | Styles applied to the header toolbar previous button element. |
| .MuiEventCalendar-headerToolbarSidePanelToggle | headerToolbarSidePanelToggle | Styles applied to the header toolbar side panel toggle button element. |
| .MuiEventCalendar-headerToolbarTodayButton | headerToolbarTodayButton | Styles applied to the header toolbar today button element. |
| .MuiEventCalendar-mainPanel | mainPanel | Styles applied to the main panel element. |
| .MuiEventCalendar-miniCalendar | miniCalendar | Styles applied to the mini calendar root element. |
| .MuiEventCalendar-miniCalendarDayButton | miniCalendarDayButton | Styles applied to mini calendar day buttons. |
| .MuiEventCalendar-miniCalendarDayCell | miniCalendarDayCell | Styles applied to mini calendar day cells. |
| .MuiEventCalendar-miniCalendarGrid | miniCalendarGrid | Styles applied to the mini calendar grid (body). |
| .MuiEventCalendar-miniCalendarHeader | miniCalendarHeader | Styles applied to the mini calendar header element. |
| .MuiEventCalendar-miniCalendarMonthLabel | miniCalendarMonthLabel | Styles applied to the mini calendar month label. |
| .MuiEventCalendar-miniCalendarNavigation | miniCalendarNavigation | Styles applied to the mini calendar header navigation container. |
| .MuiEventCalendar-miniCalendarNextButton | miniCalendarNextButton | Styles applied to the mini calendar next button element. |
| .MuiEventCalendar-miniCalendarPreviousButton | miniCalendarPreviousButton | Styles applied to the mini calendar previous button element. |
| .MuiEventCalendar-miniCalendarWeekdayCell | miniCalendarWeekdayCell | Styles applied to individual mini calendar weekday header cells. |
| .MuiEventCalendar-miniCalendarWeekdayHeader | miniCalendarWeekdayHeader | Styles applied to the mini calendar weekday header row. |
| .MuiEventCalendar-miniCalendarWeekRow | miniCalendarWeekRow | Styles applied to mini calendar week rows. |
| .MuiEventCalendar-monthView | monthView | Styles applied to the month view root element. |
| .MuiEventCalendar-monthViewBody | monthViewBody | Styles applied to the month view body element. |
| .MuiEventCalendar-monthViewCell | monthViewCell | Styles applied to month view cell elements. |
| .MuiEventCalendar-monthViewCellEvents | monthViewCellEvents | Styles applied to month view cell events container elements. |
| .MuiEventCalendar-monthViewCellNumber | monthViewCellNumber | Styles applied to month view cell number elements. |
| .MuiEventCalendar-monthViewCellNumberButton | monthViewCellNumberButton | Styles applied to month view cell number button elements. |
| .MuiEventCalendar-monthViewGrid | monthViewGrid | Styles applied to the month view grid element. |
| .MuiEventCalendar-monthViewHeader | monthViewHeader | Styles applied to the month view header element. |
| .MuiEventCalendar-monthViewHeaderCell | monthViewHeaderCell | Styles applied to month view header cell elements. |
| .MuiEventCalendar-monthViewMoreEvents | monthViewMoreEvents | Styles applied to month view more events button elements. |
| .MuiEventCalendar-monthViewPlaceholderContainer | monthViewPlaceholderContainer | Styles applied to month view placeholder event container elements. |
| .MuiEventCalendar-monthViewRow | monthViewRow | Styles applied to month view row elements. |
| .MuiEventCalendar-monthViewWeekHeaderCell | monthViewWeekHeaderCell | Styles applied to the month view week header cell element. |
| .MuiEventCalendar-monthViewWeekNumberCell | monthViewWeekNumberCell | Styles applied to month view week number cell elements. |
| .MuiEventCalendar-moreEventsPopover | moreEventsPopover | Styles applied to the more events popover element. |
| .MuiEventCalendar-moreEventsPopoverBody | moreEventsPopoverBody | Styles applied to the more events popover body element. |
| .MuiEventCalendar-moreEventsPopoverHeader | moreEventsPopoverHeader | Styles applied to the more events popover header element. |
| .MuiEventCalendar-moreEventsPopoverTitle | moreEventsPopoverTitle | Styles applied to the more events popover title element. |
| .MuiEventCalendar-preferencesMenu | preferencesMenu | Styles applied to the preferences menu element. |
| .MuiEventCalendar-preferencesMenuButton | preferencesMenuButton | Styles applied to the preferences menu button element. |
| .MuiEventCalendar-preferencesMenuDivider | preferencesMenuDivider | Styles applied to the preferences menu divider elements. |
| .MuiEventCalendar-preferencesMenuItem | preferencesMenuItem | Styles applied to the preferences menu item elements. |
| .MuiEventCalendar-preferencesMenuList | preferencesMenuList | Styles applied to the preferences menu list element. |
| .MuiEventCalendar-preferencesMenuListItemIcon | preferencesMenuListItemIcon | Styles applied to the preferences menu list item icon elements. |
| .MuiEventCalendar-preferencesMenuListItemText | preferencesMenuListItemText | Styles applied to the preferences menu list item text elements. |
| .MuiEventCalendar-preferencesMenuListSubheader | preferencesMenuListSubheader | Styles applied to the preferences menu list subheader elements. |
| .MuiEventCalendar-resourceLegendColor | resourceLegendColor | Styles applied to event item resource legend color elements. |
| .MuiEventCalendar-resourcesLegend | resourcesLegend | Styles applied to the resources legend root element. |
| .MuiEventCalendar-resourcesLegendItem | resourcesLegendItem | Styles applied to resources legend item elements. |
| .MuiEventCalendar-resourcesLegendItemCheckbox | resourcesLegendItemCheckbox | Styles applied to resources legend item checkbox elements. |
| .MuiEventCalendar-resourcesLegendItemName | resourcesLegendItemName | Styles applied to resources legend item name elements. |
| .MuiEventCalendar-resourcesLegendLabel | resourcesLegendLabel | Styles applied to the resources legend label element. |
| .MuiEventCalendar-root | root | Styles applied to the root element. |
| .MuiEventCalendar-sidePanel | sidePanel | Styles applied to the side panel element. |
| .MuiEventCalendar-sidePanelCollapse | sidePanelCollapse | Styles applied to the side panel collapse element. |
| .MuiEventCalendar-sidePanelDivider | sidePanelDivider | Styles applied to the side panel divider element. |
| .MuiEventCalendar-standaloneEvent | standaloneEvent | Styles applied to the standalone event element. |
| .MuiEventCalendar-timeGridEvent | timeGridEvent | Styles applied to time grid event elements. |
| .MuiEventCalendar-timeGridEventPlaceholder | timeGridEventPlaceholder | Styles applied to time grid event placeholder elements. |
| .MuiEventCalendar-timeGridEventRecurringIcon | timeGridEventRecurringIcon | Styles applied to time grid event recurring icon elements. |
| .MuiEventCalendar-timeGridEventResizeHandler | timeGridEventResizeHandler | Styles applied to time grid event resize handler elements. |
| .MuiEventCalendar-timeGridEventSkeleton | timeGridEventSkeleton | Styles applied to time grid event skeleton elements. |
| .MuiEventCalendar-timeGridEventTime | timeGridEventTime | Styles applied to time grid event time elements. |
| .MuiEventCalendar-timeGridEventTitle | timeGridEventTitle | Styles applied to time grid event title elements. |
| .MuiEventCalendar-viewSwitcher | viewSwitcher | Styles applied to the view switcher element. |
| .MuiEventCalendar-viewSwitcherButton | viewSwitcherButton | Styles applied to the view switcher button element. |
| .MuiEventCalendar-viewSwitcherMenu | viewSwitcherMenu | Styles applied to the view switcher menu element. |
You can override the style of the component using one of these customization options:
- With a global class name.
- With a rule name as part of the component's
styleOverridesproperty in a custom theme.
Source code
If you did not find the information in this page, consider having a look at the implementation of the component for more detail.