JSPM

  • Created
  • Published
  • Downloads 413007
  • Score
    100M100P100Q175548F
  • License MIT

Calendar! with events

Package Exports

  • react-big-calendar
  • react-big-calendar/lib/Month
  • react-big-calendar/lib/Toolbar
  • react-big-calendar/lib/css/react-big-calendar.css
  • react-big-calendar/lib/index
  • react-big-calendar/lib/less/styles.less
  • react-big-calendar/lib/utils/accessors
  • react-big-calendar/lib/utils/messages
  • react-big-calendar/lib/utils/propTypes

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-big-calendar) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

react-big-calendar

An event Calendar component built for React. Inspired by Full Calendar.

big calendar is built for modern browsers (read: ie10+) and uses flexbox over the classic tables-ception approach.

DEMO

To run the example locally, git clone, npm install and npm run examples, hosted at localhost:3000.

Use and Setup

npm install react-big-calendar --save

Include react-big-calendar/lib/css/react-big-calendar.css for styles.

Localization and Date Formatting

react-big-calendar includes two options for handling the date formatting and culture localization, depending on your preference of DateTime libraries. You can use either the Moment.js or Globalize.js localizers.

Regardless of your choice you must choose a localizer to use react-big-calendar.

Moment.js

import BigCalendar from 'react-big-calendar';
import moment from 'moment';

BigCalendar.setLocalizer(
  BigCalendar.momentLocalizer(moment)
);

Globalize.js v0.1.1

import BigCalendar from 'react-big-calendar';
import globalize from 'globalize';

BigCalendar.setLocalizer(
  BigCalendar.globalizeLocalizer(globalize)
);