@fullcalendar/preact
v7.1.5
Published
FullCalendar Preact package for rendering a calendar
Maintainers
Readme
FullCalendar Preact
FullCalendar Preact package for rendering a calendar
Installation
npm install @fullcalendar/preact temporal-polyfillComing from v6?
In v7, plugins like dayGrid and timeGrid are part of this package, imported from subpaths like @fullcalendar/preact/daygrid. The separate @fullcalendar/core, @fullcalendar/daygrid, @fullcalendar/interaction (etc.) packages are FullCalendar v6. Don't install them with v7, and don't downgrade to v6: uninstall them and import plugins from @fullcalendar/preact/daygrid. See the upgrade guide.
Usage
Render a FullCalendar component with options, including one or more plugins:
import FullCalendar from '@fullcalendar/preact'
import classicThemePlugin from '@fullcalendar/preact/themes/classic'
import dayGridPlugin from '@fullcalendar/preact/daygrid'
import '@fullcalendar/preact/skeleton.css'
import '@fullcalendar/preact/themes/classic/theme.css'
import '@fullcalendar/preact/themes/classic/palette.css'
<FullCalendar
plugins={[
dayGridPlugin,
classicThemePlugin,
// any other plugins
]}
initialView='dayGridMonth'
weekends={false}
events={[
{ title: 'Meeting', start: new Date() },
]}
/>Plugins
| Import | Provides |
| ---------------------------------- | -------------------------------------------- |
| @fullcalendar/preact/daygrid | dayGridDay/Week/Month/Year views |
| @fullcalendar/preact/timegrid | timeGridDay/Week views |
| @fullcalendar/preact/list | listDay/Week/Month/Year views |
| @fullcalendar/preact/multimonth | multiMonthYear view |
| @fullcalendar/preact/interaction | dragging, resizing, and date/event selection |
Themes are plugins too. @fullcalendar/preact/themes/classic, /monarch, /breezy, /forma, and /pulse are available, each paired with a theme.css and a palette stylesheet.
