1.0.0 • Published 4 years ago

mj-cal v1.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

mj-cal

mj-cal is a react component showing events in calendar cells.

NPM JavaScript Style Guide

Install

npm install --save mj-cal

Usage

import React, { Component } from 'react'

import mj-cal from 'mj-cal'

const events = {
  "4ZVboMpvWCRveLNmwuhW": {
    createdAt: 1569184941933,
    days: 4,
    id: 1569184941933,
    requestAvailability: true,
    start: "2019-12-10",
    end: "2019-12-15",
    title: "holiday"
  },
  myn59AMUaIX5IneyNXiH: {
    createdAt: 1568895819334,
    days: 7,
    end: "2019-09-26",
    id: 1568895819334,
    requestAvailability: true,
    start: "2019-09-19",
    title: "holiday"
  }
};
const App = () => <mj-cal events={events} />;
// If you don't have events just omit it
const App = () => <mj-cal  />;

Demo

License

MIT © majidzeno