npm install --save atomical
Just call the atomical
function on a container element, and a calendar of the current month will be rendered.
import atomical from 'atomical';
const container = document.querySelector('#calendar-container');
atomical(container);
There are several customization options available.
import atomical from 'atomical';
const container = document.querySelector('#calendar-container');
atomical(container, {
month: 0,
year: 2021,
colors: {
headerBackground: 'blue'
}
});