@fullcalendar/react
The official React Component for FullCalendar
npm downloads npm version npm license
@fullcalendar/reactSimilar Packages:
Npm Package Weekly Downloads Trend
3 Years
🌟 Show real-time usage chart on @fullcalendar/react's README.md, just copy the code below.
## Usage Trend
[![Usage Trend of @fullcalendar/react](https://npm-compare.com/img/npm-trend/THREE_YEARS/@fullcalendar/react.png)](https://npm-compare.com/@fullcalendar/react#timeRange=THREE_YEARS)
Cumulative GitHub Star Trend
🌟 Show GitHub stars trend chart on @fullcalendar/react's README.md, just copy the code below.
## GitHub Stars Trend
[![GitHub Stars Trend of @fullcalendar/react](https://npm-compare.com/img/github-trend/@fullcalendar/react.png)](https://npm-compare.com/@fullcalendar/react)
Stat Detail
Package
Downloads
Stars
Size
Issues
Publish
License
@fullcalendar/react615,8892,36423.7 kB22 months agoMIT
README for @fullcalendar/react

FullCalendar React Component

The official React Component for FullCalendar

Installation

Install the React connector, the core package, and any plugins (like daygrid):

npm install @fullcalendar/react @fullcalendar/core @fullcalendar/daygrid

Usage

Render a FullCalendar component, supplying options as props:

import FullCalendar from '@fullcalendar/react'
import dayGridPlugin from '@fullcalendar/daygrid'

const events = [
  { title: 'Meeting', start: new Date() }
]

export function DemoApp() {
  return (
    <div>
      <h1>Demo App</h1>
      <FullCalendar
        plugins={[dayGridPlugin]}
        initialView='dayGridMonth'
        weekends={false}
        events={events}
        eventContent={renderEventContent}
      />
    </div>
  )
}

// a custom render function
function renderEventContent(eventInfo) {
  return (
    <>
      <b>{eventInfo.timeText}</b>
      <i>{eventInfo.event.title}</i>
    </>
  )
}

Links

Development

You must install this repo with PNPM:

pnpm install

Available scripts (via pnpm run <script>):

  • build - build production-ready dist files
  • dev - build & watch development dist files
  • test - test headlessly
  • test:dev - test interactively
  • lint
  • clean