third party plugins

Tailwind CSS Full Calendar

FullCalendar is a versatile JavaScript component that offers a dynamic, customizable interface for displaying events in monthly, weekly, or daily views.

Below are the comprehensively outlined steps you can follow to seamlessly integrate FullCalendar JS with FlyonUI.

  • 1
    Installation

    Install fullcalendar using npm:

    npm install fullcalendar

  • 2
    Include FullCalendar JavaScript

    Add the following script to your page:

     <script src="../path/to/fullcalendar/index.global.js"></script> 

    Note: A CDN link won't work here because we need to customize the default Vendor CSS to match FlyonUI's design.


  • 3
    Update Tailwind Configuration

    Update your tailwind.css file to incorporate the path for the FlyonUI Fullcalendar override CSS.

    @import "flyonui/src/vendor/fullcalendar.css";

  • 4
    Initialize FullCalendar

    Add the initialization JavaScript code for FullCalendar after including the FullCalendar JS library:

    For more options and detailed configurations, refer to the FullCalendar JS documentation .

    const calendarDefault = new FullCalendar.Calendar(document.getElementById('calendar-container'), {
      initialView: 'dayGridMonth',
      events: [
            // Your events here
      ]
    });
    calendarDefault.render();
Class Name
Type
Description
fc-event-disabledStateMakes disabled range to prevent events.
fc-event-primaryColorMakes event of primary variant.
fc-event-secondaryColorMakes event of secondary variant.
fc-event-infoColorMakes event of info variant.
fc-event-successColorMakes event of success variant.
fc-event-warningColorMakes event of warning variant.
fc-event-errorColorMakes event of error variant.

The following example demonstrates the usage of a default full calendar, initialized with the JavaScript code provided below.

The following example demonstrates the usage of a custom functional full calendar with event modal, initialized with the JavaScript code provided below.