Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

reactcalendar

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reactcalendar

Calendar Library build in React

  • 2.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-87.5%
Maintainers
1
Weekly downloads
 
Created
Source

React Calendar

React Calendar is a library for displaying a calendar and events that overlay. Its designed so that no events will visually overlap

You can display a calendar like below:

var React = require("react"),
    Calendar = require("reactcalendar");

var events = [  {start: 30, end: 150, title: "Breakfast with Sarah", location: "Test123"},
                {start: 540, end: 600, title: "Meeting with John", location: "Sample Text"},
                {start: 560, end: 620, title: "React Meetup", location: "Placeholder text"},
                {start: 610, end: 670, title: "Assignment Due", location: "Something ABC"} ];

React.render(
    <Calendar events={events}/>,
    document.getElementById("day-wrapper")
);

You will need to have a div in your html (alternatively you can just use document.body):

<div id="day-wrapper"></div>

Click here to see the generated calendar

The data passed to the component is compromised of an array of objects, each have the properties:

  • start: this is the start time minutes since 9am
  • end: this is the end time minutes since 9am

Install

React calendar is available as an npm package.

npm install reactcalendar

Run example

git clone https://github.com/jooj123/react-calendar.git
npm install
npm start

Contribute

This plugin is very much in its early form. Please feel free to submit a Pull Request, I would love for you to contribute to React Calendar

TODO

  1. Tests need to be implemented
  2. Functionality for varying times in a day
  3. Functionality for multiple day views (currently only supports the view of 1 day)
  4. Functionality for events such as onClick, onMouseOver etc on the calendar events

Keywords

FAQs

Package last updated on 11 Jul 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc