fullcalendar/fullcalendar-react
概要
FullCalendar 公式の React コンポーネント
Web・アプリ開発計測したスター増加
- 24時間
- 0
- 7日間
- +1
- 15日間
- 0
- 1か月
- -2
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルFullCalendar React Component
[!IMPORTANT] This repo shows FullCalendar v6. The current version is v7, which is developed in fullcalendar-workspace for now. This repo's code is lagging behind and will be updated.
In v7, plugins like dayGrid and timeGrid are no longer separate packages. Run
npm install @fullcalendar/react temporal-polyfilland import plugins from@fullcalendar/react/daygrid, etc. Don't install@fullcalendar/core,@fullcalendar/daygridor the other v6 packages with v7. See the v7 React docs.
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 filesdev- build & watch development dist filestest- test headlesslytest:dev- test interactivelylintclean
関連プロジェクトを探す
読み込み中…