1.0.0 • Published 4 years ago
mj-cal v1.0.0
mj-cal
mj-cal is a react component showing events in calendar cells.
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 />;
License
MIT © majidzeno
1.0.0
4 years ago