@fullcalendar/mui
v7.0.0-beta.5
Published
Display an event calendar that inherits from your [@mui/material](https://www.npmjs.com/package/@mui/material) theme.
Downloads
68
Readme
FullCalendar MUI Integration
Display an event calendar that inherits from your @mui/material theme.
Installation
First, ensure you have all React and MUI-related packages already installed. Then install FullCalendar and a select set of plugins:
npm install \
@fullcalendar/core \
@fullcalendar/mui \
@fullcalendar/daygrid \
@fullcalendar/timegrid \
@fullcalendar/interaction \
@fullcalendar/multimonthUsage
First, choose a theme "flavor": monarch, forma, breezy, pulse, or classic.
Next, decide whether you're using FullCalendar "standard" (aka "EventCalendar") or premium (aka "Scheduler").
Standard Usage
import EventCalendar from '@fullcalendar/mui/monarch/EventCalendar'
import '@fullcalendar/core/skeleton.css'
import '@fullcalendar/mui/monarch/global.css'
<EventCalendar
addButton={{
text: 'Add Event',
click() {
alert('add event...')
}
}}
/>Premium Usage
You must install additional packages:
npm install \
@fullcalendar/adaptive \
@fullcalendar/scrollgrid \
@fullcalendar/timeline \
@fullcalendar/resource-timeline \
@fullcalendar/resource-timegrid \
@fullcalendar/resource-daygridThen write your component code:
import Scheduler from '@fullcalendar/mui/monarch/Scheduler'
import '@fullcalendar/core/skeleton.css'
import '@fullcalendar/mui/monarch/global.css'
<EventCalendar
addButton={{
text: 'Add Resource',
click() {
alert('add resource...')
}
}}
/>Custom Usage
Want complete control over the toolbar, calendar views, or plugins? Future docs will explain how to do this.
