Gathering detailed insights and metrics for react-big-calendar
Gathering detailed insights and metrics for react-big-calendar
Gathering detailed insights and metrics for react-big-calendar
Gathering detailed insights and metrics for react-big-calendar
@types/react-big-calendar
TypeScript definitions for react-big-calendar
@roopendra/react-big-calendar
Fork of react-big-calendar with timezone support (depends on moment-timezone)
react-big-calendar-like-google
Forked from Jason Quense <monastic.panic@gmail.com> (https://github.com/intljusticemission/react-big-calendar). Changed calendar style! with events
@fedotxxl/react-big-calendar-types
TypeScript definitions for react-big-calendar
npm install react-big-calendar
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
7,932 Stars
904 Commits
2,242 Forks
81 Watching
36 Branches
247 Contributors
Updated on 27 Nov 2024
Minified
Minified + Gzipped
JavaScript (80.31%)
MDX (16.42%)
SCSS (2.96%)
Less (0.26%)
Shell (0.03%)
HTML (0.03%)
Cumulative downloads
Total Downloads
Last day
-2.3%
61,489
Compared to previous day
Last week
2.4%
313,970
Compared to previous week
Last month
13.8%
1,336,343
Compared to previous month
Last year
30.9%
13,766,582
Compared to previous year
16
59
An events calendar component built for React and designed for modern browsers (read: not IE) and uses flexbox over the classic tables-caption approach.
Inspired by Full Calendar.
yarn add react-big-calendar
or npm install --save react-big-calendar
Include react-big-calendar/lib/css/react-big-calendar.css
for styles, and make sure your calendar's container
element has a height, or the calendar won't be visible. To provide your own custom styling, see the Custom Styling topic.
1$ git clone git@github.com:jquense/react-big-calendar.git 2$ cd react-big-calendar 3$ yarn 4$ yarn storybook
react-big-calendar
includes four options for handling the date formatting and culture localization, depending
on your preference of DateTime libraries. You can use either the Moment.js, Globalize.js, date-fns, Day.js localizers.
Regardless of your choice, you must choose a localizer to use this library:
1import { Calendar, momentLocalizer } from 'react-big-calendar' 2import moment from 'moment' 3 4const localizer = momentLocalizer(moment) 5 6const MyCalendar = (props) => ( 7 <div> 8 <Calendar 9 localizer={localizer} 10 events={myEventsList} 11 startAccessor="start" 12 endAccessor="end" 13 style={{ height: 500 }} 14 /> 15 </div> 16)
1import { Calendar, globalizeLocalizer } from 'react-big-calendar' 2import globalize from 'globalize' 3 4const localizer = globalizeLocalizer(globalize) 5 6const MyCalendar = (props) => ( 7 <div> 8 <Calendar 9 localizer={localizer} 10 events={myEventsList} 11 startAccessor="start" 12 endAccessor="end" 13 style={{ height: 500 }} 14 /> 15 </div> 16)
1import { Calendar, dateFnsLocalizer } from 'react-big-calendar' 2import format from 'date-fns/format' 3import parse from 'date-fns/parse' 4import startOfWeek from 'date-fns/startOfWeek' 5import getDay from 'date-fns/getDay' 6import enUS from 'date-fns/locale/en-US' 7 8const locales = { 9 'en-US': enUS, 10} 11 12const localizer = dateFnsLocalizer({ 13 format, 14 parse, 15 startOfWeek, 16 getDay, 17 locales, 18}) 19 20const MyCalendar = (props) => ( 21 <div> 22 <Calendar 23 localizer={localizer} 24 events={myEventsList} 25 startAccessor="start" 26 endAccessor="end" 27 style={{ height: 500 }} 28 /> 29 </div> 30)
Note that the dayjsLocalizer extends Day.js with the following plugins:
1import { Calendar, dayjsLocalizer } from 'react-big-calendar' 2import dayjs from 'dayjs' 3 4const localizer = dayjsLocalizer(dayjs) 5 6const MyCalendar = (props) => ( 7 <div> 8 <Calendar 9 localizer={localizer} 10 events={myEventsList} 11 startAccessor="start" 12 endAccessor="end" 13 style={{ height: 500 }} 14 /> 15 </div> 16)
Out of the box, you can include the compiled CSS files and be up and running. But, sometimes, you may want to style Big Calendar to match your application styling. For this reason, SASS files are included with Big Calendar.
@import 'react-big-calendar/lib/sass/styles';
@import 'react-big-calendar/lib/addons/dragAndDrop/styles'; // if using DnD
SASS implementation provides a variables
file containing color and sizing variables that you can
update to fit your application. Note: Changing and/or overriding styles can cause rendering issues with your
Big Calendar. Carefully test each change accordingly.
Help us improve Big Calendar! Join us on Slack. (Slack invite links do expire. If you can't get in, just file an issue and we'll get a new link.)
No vulnerabilities found.
Reason
12 commit(s) and 6 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
packaging workflow detected
Details
Reason
Found 12/30 approved changesets -- score normalized to 4
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
22 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More