Skip to content

majidzeno/mj-cal

Repository files navigation


mj-cal component Logo


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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published