# reactcalendar

> Calendar Library build in React

Latest version **2.2.0** (published 2016-07-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install reactcalendar
pnpm add reactcalendar
yarn add reactcalendar
bun add reactcalendar
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.2.0 |
| Published | 2016-07-11 |
| First published | 2015-05-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | Martin Jujou |
| Maintainers | jooj |
| Keywords | calendar, react, library, module, events |

## Links

- npm: https://www.npmjs.com/package/reactcalendar
- Repository: https://github.com/jooj123/react-calendar
- Issues: https://github.com/jooj123/react-calendar/issues
- npm.io page: https://npm.io/package/reactcalendar

## Dependencies (3)

- [react](https://npm.io/package/react.md) ^15.2.0
- [react-dom](https://npm.io/package/react-dom.md) ^15.2.0
- [style-loader](https://npm.io/package/style-loader.md) ^0.13.1

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 2.2.0 (latest) — 2016-07-11
- 0.0.7 — 2015-05-31
- 0.0.6 — 2015-05-31
- 0.0.5 — 2015-05-31
- 0.0.4 — 2015-05-31
- 0.0.2 — 2015-05-30
- 0.0.1 — 2015-05-30

## README

# 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**](https://raw.githubusercontent.com/jooj123/react-calendar/master/docs/calendar.png) 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

---
_Source: https://npm.io/package/reactcalendar · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
